Skip to content

Commit

Permalink
prevent option of duplication on feeds title
Browse files Browse the repository at this point in the history
  • Loading branch information
noamoss committed Jun 8, 2016
1 parent 8d19002 commit 161b663
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion feeds.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ def set_title_by_feed(url,city=u""):
except:
title=""
if project_name==u'תב"ע פתוחה':
title+=" " + str(city)
if city not in title:
title+=" " + str(city)
return (project_name,title)

def relevant_feeds(user_id=None):
Expand Down

0 comments on commit 161b663

Please sign in to comment.