avoid duplicate bureaus in web admin

workspace
Brendan Howell 5 years ago
parent 10e51621a0
commit bc079eb1f8

@ -87,6 +87,7 @@ class IhrApp(Bottle):
return template.render_unicode(msg=msg, bureau=bureau, logdata=logdata) return template.render_unicode(msg=msg, bureau=bureau, logdata=logdata)
def register_bureau(self, bureau): def register_bureau(self, bureau):
if not(bureau in self.bureaus):
self.bureaus.append(bureau) self.bureaus.append(bureau)
def register_crud(self, data): def register_crud(self, data):

Loading…
Cancel
Save