mirror of
https://github.com/nikdoof/foursquare-feeds.git
synced 2025-12-14 17:12:30 +00:00
Tidy up.
I got a linter.
This commit is contained in:
@@ -2,9 +2,7 @@
|
|||||||
import configparser
|
import configparser
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import sys
|
|
||||||
|
|
||||||
import arrow
|
|
||||||
import foursquare
|
import foursquare
|
||||||
from ics import Calendar, Event
|
from ics import Calendar, Event
|
||||||
|
|
||||||
@@ -91,7 +89,8 @@ class FeedGenerator:
|
|||||||
e.uid = "{}@foursquare.com".format(checkin["id"])
|
e.uid = "{}@foursquare.com".format(checkin["id"])
|
||||||
e.begin = checkin["createdAt"]
|
e.begin = checkin["createdAt"]
|
||||||
|
|
||||||
# Use the 'shout', if any, and the timezone offset in the description.
|
# Use the 'shout', if any, and the timezone offset in the
|
||||||
|
# description.
|
||||||
description = []
|
description = []
|
||||||
if "shout" in checkin and len(checkin["shout"]) > 0:
|
if "shout" in checkin and len(checkin["shout"]) > 0:
|
||||||
description = [checkin["shout"]]
|
description = [checkin["shout"]]
|
||||||
|
|||||||
Reference in New Issue
Block a user