Skip to content

Commit

Permalink
App BEMAS: Korrekturen Tests; Korrektur Filter auf DateTimeField
Browse files Browse the repository at this point in the history
  • Loading branch information
gdmhrogut committed Aug 18, 2023
1 parent c9bb7f2 commit ecc6257
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions bemas/tests/tests_codelist.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ class SectorModelTest(DefaultCodelistTestCase):
"""

model = Sector
count = 1
count = 26
attributes_values_db_initial = {
'title': 'hFxVbEb2'
}
Expand Down Expand Up @@ -259,7 +259,7 @@ def setUp(self):
def test_tabledata_view_standard_rights(self):
self.generic_view_test(
True, False, 'codelists_sector_tabledata', TABLEDATA_VIEW_PARAMS, 200,
'application/json', 'Baubetrieb'
'application/json', 'Freizeitanlage'
)

def test_tabledata_view_admin_rights(self):
Expand Down Expand Up @@ -347,7 +347,7 @@ class TypeOfEventModelTest(DefaultCodelistTestCase):
"""

model = TypeOfEvent
count = 6
count = 5
attributes_values_db_initial = {
'title': 'UIO0F3n8',
'icon': 'qgzUK9gf'
Expand Down Expand Up @@ -514,7 +514,7 @@ class TypeOfImmissionModelTest(DefaultCodelistTestCase):
"""

model = TypeOfImmission
count = 6
count = 7
attributes_values_db_initial = {
'title': 'eaDUeltd',
'icon': 'wLIe5cDw'
Expand Down
4 changes: 2 additions & 2 deletions bemas/views/views_general.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ def get_context_data(self, **kwargs):
context['lastest_activity_objects'] = get_lastest_activity_objects(5)
# add statistics to context
num_complaints = Complaint.objects.all().count()
one_year_ago = (timezone.now() - timedelta(days=365)).date()
one_year_ago = (timezone.now() - timedelta(days=365))
one_year_ago_formatted = format_date_datetime(one_year_ago)
one_month_ago = (timezone.now() - timedelta(days=30)).date()
one_month_ago = (timezone.now() - timedelta(days=30))
one_month_ago_formatted = format_date_datetime(one_month_ago)
statistics = []
# total complaints by type of immission
Expand Down

0 comments on commit ecc6257

Please sign in to comment.