diff options
author | emkael <emkael@tlen.pl> | 2016-04-01 16:29:28 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2016-04-01 16:29:28 +0200 |
commit | d5caff5838ab268d93dbb16e5a8fa3b163f4d9cd (patch) | |
tree | 12968c75ff1eb5b044abc3fe6faf046b05d4dca3 | |
parent | 92438c15ae16765142795605dedb4a203ff5d6c6 (diff) |
* calendar category update purely informational
-rw-r--r-- | bin/import_cals.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/import_cals.py b/bin/import_cals.py index ef49e89..07b8967 100644 --- a/bin/import_cals.py +++ b/bin/import_cals.py @@ -60,10 +60,11 @@ def update_calendar(cal, session): print 'Updating calendar website: %s -> %s (%s)' % ( db_cal.website, cal['website'], db_cal.uid) db_cal.website = cal['website'] + + # informational only if db_cal.category.name != cal['category']: - print 'Updating calendar category: %s -> %s (%s)' % ( + print 'Calendar category changed: %s -> %s (%s)' % ( db_cal.category.name, cal['category'], db_cal.uid) - db_cal.category = Category.fetch(cal['category'], session) def get_imported_calendars(cells, ical_markdown): |