11
11
def version_overview () -> List [Dict [str , str ]]:
12
12
current_version = app_version .get_all ()
13
13
if len (current_version ) == 0 :
14
- print ("version check before entry add --> update to newest version" , flush = True )
14
+ print (
15
+ "version check before entry add --> update to current version" , flush = True
16
+ )
15
17
update_to_newest ()
16
18
17
19
if not check_db_uptodate ():
@@ -51,7 +53,10 @@ def update_to_newest() -> None:
51
53
something_updated = False
52
54
current_version = app_version .get_all ()
53
55
if len (current_version ) == 0 :
54
- print ("No version found in database -> assuming < 1.2.0" , flush = True )
56
+ print (
57
+ "No version found in database -> assuming new installation or version < 1.2.0" ,
58
+ flush = True ,
59
+ )
55
60
initial_db_version .upgrade ()
56
61
something_updated = True
57
62
current_version = app_version .get_all ()
@@ -66,6 +71,7 @@ def update_to_newest() -> None:
66
71
db_entry .installed_version ,
67
72
db_entry .remote_version ,
68
73
)
74
+ # version is overwritten in alfred start up procedure
69
75
db_entry .installed_version = db_entry .remote_version
70
76
something_updated = True
71
77
if something_updated :
@@ -119,5 +125,5 @@ def __remote_has_newer(installed: str, remote: Union[str, None]) -> bool:
119
125
return base_logic .is_newer (remote , installed )
120
126
121
127
122
- def helper_function (function_name : str ) -> bool :
128
+ def helper_function (function_name : str ) -> bool :
123
129
return base_logic .call_function_by_name (function_name )
0 commit comments