accepting comand line arguments

This commit is contained in:
Vinicius Moreira
2019-07-01 16:37:00 -03:00
parent a1e83a5d19
commit 060acaea08
9 changed files with 56 additions and 19 deletions

View File

@@ -53,7 +53,10 @@ class FlatpakManager:
api_data = self._request_app_data(app['id'])
if api_data:
api_data['expires_at'] = datetime.utcnow() + timedelta(seconds=self.cache_expire)
if self.cache_expire > 0:
api_data['expires_at'] = datetime.utcnow() + timedelta(seconds=self.cache_expire)
self.cache_apps[app['id']] = api_data
if not api_data: