Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
thanodnl committed Nov 16, 2023
1 parent ee319c0 commit 900f2e9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion citus_load/bash_completion
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ _citus_load()
repo_time=${repo_time_float%.*}
schema_cache_time=$(stat -c %Y $schema_cache_file)
if [ $repo_time -gt $schema_cache_time ]; then
echo "repo has been updated, refreshing schema cache"
rm $schema_cache_file
fi
fi
Expand Down
3 changes: 0 additions & 3 deletions citus_load/citus_load
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,6 @@ If the schema is not found, an error will be printed and the application will ex

def load(arguments):
refresh_repos()
return

schema_name = arguments["<schema>"]
schema = find_schema(schema_name)
Expand Down Expand Up @@ -285,10 +284,8 @@ class Repo:
try:
# we skip pulling if we fail to read the last mtime of the snitch file
git_fetch_head_path = os.path.join(self.absolute_path, ".git/FETCH_HEAD")
print(f"should we update {git_fetch_head_path}")
last_pull_time = os.path.getmtime(git_fetch_head_path)
last_pull_time = datetime.fromtimestamp(last_pull_time)
print(last_pull_time)
difference = datetime.now() - last_pull_time

if difference.total_seconds() > 86400:
Expand Down

0 comments on commit 900f2e9

Please sign in to comment.