avoid duplicate bureaus in web admin

workspace
Brendan Howell 5 years ago
parent 10e51621a0
commit bc079eb1f8

@ -87,7 +87,8 @@ class IhrApp(Bottle):
return template.render_unicode(msg=msg, bureau=bureau, logdata=logdata)
def register_bureau(self, bureau):
self.bureaus.append(bureau)
if not(bureau in self.bureaus):
self.bureaus.append(bureau)
def register_crud(self, data):
# adds callbacks for crud operations on a database

Loading…
Cancel
Save