Commits

Patrick Guido Arminio committed be3ed57

Aggiunta notifica

Comments (0)

Files changed (1)

projectmensa/menu/management/commands/get_today_menu.py

             try:
                 if not options['force']:
                     MenuOfTheDay.objects.get(downloaded_from=r.url)
+                    self.stdout.write('Menu already downloaded\n')
+                    send_notification('Menu already donwloaded', r.url)
                     return
             except MenuOfTheDay.DoesNotExist:
                 pass