diff options
Diffstat (limited to 'src/hydrilla')
-rw-r--r-- | src/hydrilla/proxy/state_impl/repos.py | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/hydrilla/proxy/state_impl/repos.py b/src/hydrilla/proxy/state_impl/repos.py index 663a450..ae3b70c 100644 --- a/src/hydrilla/proxy/state_impl/repos.py +++ b/src/hydrilla/proxy/state_impl/repos.py @@ -240,7 +240,7 @@ class ConcreteRepoRef(st.RepoRef): ensure_repo_not_deleted(cursor, self.id) cursor.execute( - 'SELECT url from repos where repo_id = ?;', + 'SELECT url FROM repos WHERE repo_id = ?;', (self.id,) ) @@ -258,6 +258,18 @@ class ConcreteRepoRef(st.RepoRef): self.state.recompute_dependencies() + cursor.execute( + ''' + UPDATE + repos + SET + last_refreshed = STRFTIME('%s', 'NOW') + WHERE + repo_id = ?; + ''', + (self.id,) + ) + return ConcreteRepoIterationRef(str(new_iteration_id), self.state) def get_display_info(self) -> st.RepoDisplayInfo: |