Skip to content

Commit 617810b

Browse files
committed
fixed formatting and changed version
1 parent 7012cf4 commit 617810b

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"Name": "Google Calendar",
55
"Description": "Add events to your Google Calendar",
66
"Author": "Ilja van Ipenburg",
7-
"Version": "1.2.2",
7+
"Version": "1.2.3",
88
"Language": "python",
99
"Website": "https://github.com/ivanipenburg/Flow.Launcher.Plugin.GoogleCalendar",
1010
"IcoPath": "Images\\app.png",

plugin/events.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ def get_sorted_events(service, num_events):
1919

2020

2121
def get_event_times(event, time_format):
22-
2322
start_dt, end_dt, start_time, end_time = None, None, None, None
2423
if 'dateTime' in event['start']:
2524
start_dt = datetime.strptime(event['start']['dateTime'][:19], time_format)

plugin/main.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ def display_current_events(self):
103103
self.show_result('Could not load upcoming events', e)
104104

105105
for i, event in enumerate(self.upcoming_events):
106-
107-
if 'summary' not in event: continue
106+
if 'summary' not in event:
107+
continue
108108

109109
start_dt, _, start_time, end_time = get_event_times(event, TIME_FORMAT)
110110

@@ -120,6 +120,5 @@ def display_current_events(self):
120120
self.show_result(event['summary'], subtitle, score=10-i, glyph_id=date_glyph_id, method="open_webpage", params=[event['htmlLink']])
121121

122122

123-
124123
if __name__ == "__main__":
125124
GoogleCalendar()

0 commit comments

Comments
 (0)