Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Zanger67 committed Jul 26, 2024
1 parent 47bf2f0 commit f5c4370
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 28 deletions.
10 changes: 4 additions & 6 deletions main.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -241,18 +241,16 @@
" # In case of a redundant '\\n' at the end of an output\n",
" if temp :\n",
" modifiedTimes.append(temp)\n",
" \n",
" modifiedTimes.sort()\n",
" \n",
" \n",
" # Debugging\n",
" if '1404' in cmd[-1] :\n",
" print(f'{cmd = }')\n",
" print(f'{modifiedTimes = }')\n",
" print(f'{result = }')\n",
" # modifiedTimes.sort()\n",
" \n",
" try :\n",
" creationDate = datetime.strptime(time.ctime(int(modifiedTimes[0])), '%a %b %d %H:%M:%S %Y')\n",
" modifiedDate = datetime.strptime(time.ctime(int(modifiedTimes[-1])), '%a %b %d %H:%M:%S %Y')\n",
" creationDate = datetime.strptime(time.ctime(int(min(modifiedTimes))), '%a %b %d %H:%M:%S %Y')\n",
" modifiedDate = datetime.strptime(time.ctime(int(max(modifiedTimes))), '%a %b %d %H:%M:%S %Y')\n",
" \n",
" except ValueError as ve:\n",
" print(f'Error in parsing {path}')\n",
Expand Down
10 changes: 4 additions & 6 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,18 +176,16 @@ def individualCTimeViaGit(cmd: List[str]) -> Tuple[datetime, datetime] :
# In case of a redundant '\n' at the end of an output
if temp :
modifiedTimes.append(temp)

modifiedTimes.sort()


# Debugging
if '1404' in cmd[-1] :
print(f'{cmd = }')
print(f'{modifiedTimes = }')
print(f'{result = }')
# modifiedTimes.sort()

try :
creationDate = datetime.strptime(time.ctime(int(modifiedTimes[0])), '%a %b %d %H:%M:%S %Y')
modifiedDate = datetime.strptime(time.ctime(int(modifiedTimes[-1])), '%a %b %d %H:%M:%S %Y')
creationDate = datetime.strptime(time.ctime(int(min(modifiedTimes))), '%a %b %d %H:%M:%S %Y')
modifiedDate = datetime.strptime(time.ctime(int(max(modifiedTimes))), '%a %b %d %H:%M:%S %Y')

except ValueError as ve:
print(f'Error in parsing {path}')
Expand Down
Binary file removed misc/pat_setup_images/image-10.png
Binary file not shown.
Binary file removed misc/pat_setup_images/image-11.png
Binary file not shown.
Binary file removed misc/pat_setup_images/image-5.png
Binary file not shown.
Binary file removed misc/pat_setup_images/image-7.png
Binary file not shown.
Binary file removed misc/pat_setup_images/image-8.png
Binary file not shown.
Binary file removed misc/pat_setup_images/image-9.png
Binary file not shown.
Binary file removed misc/pat_setup_images/image.png
Binary file not shown.
16 changes: 0 additions & 16 deletions pat_setup.md

This file was deleted.

0 comments on commit f5c4370

Please sign in to comment.