1
0
Fork 0
IdreXyz/label/tools.py

13 lines
296 B
Python
Raw Normal View History

2015-03-14 22:38:12 +01:00
def get_catalog_tag(ident):
return "IDRE{:0>3d}".format(ident)
def get_contribs(contributors):
contrib_list = []
for contrib in contributors:
contrib_list.append({
"id": contrib.id,
"name": contrib.name
})
return contrib_list