Skip to content

Commit

Permalink
test assort.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Sup2point0 authored Mar 20, 2024
1 parent 3df8769 commit 7cbf0bc
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions source/assort.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,17 @@

## NOTE testing
path = f"docs/test.txt"
repo.create_file(path, "auto-assort", text)
from datetime import datetime
text = str(datetime.now()) + text
try:
existing = repo.get_contents(path)
repo.update_file(path, "auto-assort", text, sha = existing.sha)
except:
repo.create_file(path, "auto-assort", text)

break
##

## FIXME?

try:
existing = repo.get_contents(path)
repo.update_file(path, "auto-assort", file.content, sha = existing.sha)
Expand Down

0 comments on commit 7cbf0bc

Please sign in to comment.