just removed some debug prints

This commit is contained in:
Benni Baermann 2021-11-08 14:31:10 +01:00
parent 8faf072aa9
commit b228285344

View file

@ -96,15 +96,15 @@ class Project(Volunteer):
self.pid = str(self.account.code) + str(self.pk).zfill(3)
# generation of finance_id
if not self.project_of_year:
print('AAA')
#print('AAA')
# we need to determine if this is a new year with its first new project...
year = self.start.year
projects = Project.objects.filter(start__year=year)
if not projects:
print('BBB')
#print('BBB')
self.project_of_year = 1
else:
print('CCC')
#print('CCC')
projects = projects.order_by("-project_of_year")[0]
self.project_of_year = int(projects.project_of_year) + 1
self.finance_id = str(self.account.code) + str(self.project_of_year).zfill(3)