Skip to content

Commit

Permalink
fixed formatting and changed version
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanipenburg committed Jul 4, 2023
1 parent 7012cf4 commit 617810b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"Name": "Google Calendar",
"Description": "Add events to your Google Calendar",
"Author": "Ilja van Ipenburg",
"Version": "1.2.2",
"Version": "1.2.3",
"Language": "python",
"Website": "https://github.com/ivanipenburg/Flow.Launcher.Plugin.GoogleCalendar",
"IcoPath": "Images\\app.png",
Expand Down
1 change: 0 additions & 1 deletion plugin/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ def get_sorted_events(service, num_events):


def get_event_times(event, time_format):

start_dt, end_dt, start_time, end_time = None, None, None, None
if 'dateTime' in event['start']:
start_dt = datetime.strptime(event['start']['dateTime'][:19], time_format)
Expand Down
5 changes: 2 additions & 3 deletions plugin/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ def display_current_events(self):
self.show_result('Could not load upcoming events', e)

for i, event in enumerate(self.upcoming_events):

if 'summary' not in event: continue
if 'summary' not in event:
continue

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

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



if __name__ == "__main__":
GoogleCalendar()

0 comments on commit 617810b

Please sign in to comment.