Changeset 5e1597c in osmose-backend


Ignore:
Timestamp:
Feb 25, 2014 12:25:33 PM (6 years ago)
Author:
Frédéric Rodrigo <fred.rodrigo@…>
Branches:
master
Children:
ef61f5f
Parents:
967094e
Message:

No empty tag in error class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/TagWatchFrViPofm.py

    rd0944e5 r5e1597c  
    5353                r = res[1].strip() 
    5454                c0 = res[2].strip() 
     55                tags = ["fix:chair"] if c0 == "" else [c0, "fix:chair"] 
    5556                c = abs(hash(c0.encode("utf8")))%2147483647 
    56                 self.errors[c] = { "item": 3030, "level": 2, "tag": [c0, "fix:chair"], "desc": {"en": c0} } 
     57                self.errors[c] = { "item": 3030, "level": 2, "tag": tags, "desc": {"en": c0} } 
    5758                #of = res[3].strip() 
    5859                if u"=" in res[0]: 
Note: See TracChangeset for help on using the changeset viewer.