File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22import sys
33from datetime import datetime , timedelta
44
5- import win32com .client
6-
75parent_folder_path = os .path .abspath (os .path .dirname (__file__ ))
86sys .path .append (parent_folder_path )
97sys .path .append (os .path .join (parent_folder_path , 'lib' ))
1210from flowlauncher import FlowLauncher
1311import webbrowser
1412
13+ import win32com .client
14+
1515
1616class MSOutlook (FlowLauncher ):
1717 def query (self , query ):
18- if query .strip ().lower () == "mt" :
19- return self .get_today_meetings ()
20-
21- return []
18+ return self .get_today_meetings ()
2219
2320 def get_today_meetings (self ):
2421 outlook = win32com .client .Dispatch ("Outlook.Application" )
@@ -57,7 +54,7 @@ def get_today_meetings(self):
5754 results .append ({
5855 "Title" : item .Subject ,
5956 "SubTitle" : f"{ time_status } ({ item .Start .strftime ('%H:%M' )} - { item .End .strftime ('%H:%M' )} )" ,
60- "IcoPath" : "Images/ol .png" ,
57+ "IcoPath" : "Images/cal .png" ,
6158 "JsonRPCAction" : {
6259 "method" : "open_selected_meeting" ,
6360 "parameters" : [item .EntryID ],
You can’t perform that action at this time.
0 commit comments