forked from Yaltik/golem
[FIX]Member number config default prefix when not fixed
This commit is contained in:
parent
cbec4b22a6
commit
756017a697
@ -114,7 +114,7 @@ class GolemMember(models.Model):
|
|||||||
season.member_counter += 1
|
season.member_counter += 1
|
||||||
season.write({'member_counter': season.member_counter})
|
season.write({'member_counter': season.member_counter})
|
||||||
pkey = 'golem_numberconfig_prefix'
|
pkey = 'golem_numberconfig_prefix'
|
||||||
pfx = conf.get_param(pkey)
|
pfx = conf.get_param(pkey, '')
|
||||||
number = pfx + str(season.member_counter)
|
number = pfx + str(season.member_counter)
|
||||||
data = {'member_id': member.id,
|
data = {'member_id': member.id,
|
||||||
'season_id': season.id,
|
'season_id': season.id,
|
||||||
@ -138,7 +138,7 @@ class GolemMember(models.Model):
|
|||||||
last = int(conf.get_param('golem_number_counter', 0))
|
last = int(conf.get_param('golem_number_counter', 0))
|
||||||
last += 1
|
last += 1
|
||||||
conf.set_param('golem_number_counter', str(last))
|
conf.set_param('golem_number_counter', str(last))
|
||||||
pfx = conf.get_param('golem_numberconfig_prefix')
|
pfx = conf.get_param('golem_numberconfig_prefix', '')
|
||||||
number = pfx + str(last)
|
number = pfx + str(last)
|
||||||
data = {'member_id': self[0].id,
|
data = {'member_id': self[0].id,
|
||||||
'season_id': None,
|
'season_id': None,
|
||||||
|
Loading…
Reference in New Issue
Block a user