# 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:
2022-01-20 12:19:08 +01:00
parent dc42278943
commit 014155b0a4
4 changed files with 42 additions and 22 deletions

View File

@@ -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"],