# 70 Tab title compensation
* adds tab titles for compensations * adds/updates translations * optimizes identifier generating, so that one-digit months will be converted into two digits
This commit is contained in:
@@ -182,7 +182,12 @@ class BaseObject(BaseResource):
|
||||
return generate_random_string(10)
|
||||
|
||||
_now = now()
|
||||
curr_month = str(_now.month)
|
||||
curr_month = _now.month
|
||||
if curr_month < 10:
|
||||
# Make sure month part has two digits to have same length identifiers by default
|
||||
curr_month = f"0{curr_month}"
|
||||
else:
|
||||
curr_month = str(curr_month)
|
||||
curr_year = str(_now.year)
|
||||
rand_str = generate_random_string(
|
||||
length=definitions[self.__class__]["length"],
|
||||
|
||||
Reference in New Issue
Block a user