Explorar el Código

generating the temp_article now uses empty string rather than None

Alistair Magee hace 10 años
padre
commit
3f75d36a91
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      custom_article_urls/custom_article_urls.py

+ 1 - 1
custom_article_urls/custom_article_urls.py

@@ -33,7 +33,7 @@ def custom_url(generator, metadata):
                 """
                 """
                 pass
                 pass
             else:
             else:
-                temp_article = Article(None, metadata=metadata)
+                temp_article = Article("", metadata=metadata)
                 url_format = pattern_matched['URL']
                 url_format = pattern_matched['URL']
                 save_as_format = pattern_matched['SAVE_AS']
                 save_as_format = pattern_matched['SAVE_AS']
                 url = url_format.format(**temp_article.url_format)
                 url = url_format.format(**temp_article.url_format)