Skip to content

Commit

Permalink
print alphabetic register every day (#848)
Browse files Browse the repository at this point in the history
  • Loading branch information
the-it committed Sep 6, 2022
1 parent 9963413 commit 5d68cbe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion service/ws_re/register/printer.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ def __init__(self, wiki: Site = None, debug: bool = True,

def task(self):
self._print_volume()
self._print_alphabetic()
if datetime.datetime.now().weekday() == 0:
self._print_alphabetic()
self._print_author()
self._print_short()
self._print_pd()
Expand Down
2 changes: 1 addition & 1 deletion service/ws_re/register/test_printer.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def test_task_other_day(self):
printer._print_pd = pd_mock
printer.task()
self.assertTrue(volume_mock.called)
self.assertFalse(alphabetic_mock.called)
self.assertTrue(alphabetic_mock.called)
self.assertFalse(author_mock.called)
self.assertFalse(short_mock.called)
self.assertFalse(pd_mock.called)

0 comments on commit 5d68cbe

Please sign in to comment.