Skip to content

Commit

Permalink
Fix Updating files adding newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonius7 committed Apr 27, 2022
1 parent 3494a03 commit 86f8167
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -1211,7 +1211,7 @@ def download_file(filepath, branch=BRANCH):
if len(dirs) == 2 and not os.path.exists(dirs[0]):
os.makedirs(dirs[0])
#open(filepath, 'wb').write(r.context)
open(filepath, 'w', encoding="UTF-8").write(r.text)
open(filepath, 'w', encoding="UTF-8", newline='').write(r.text)
print("File " + filepath + " downloaded.")
else:
print("Invalid request URL")
Expand Down
6 changes: 3 additions & 3 deletions old_glory.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@

class OldGloryApp(tk.Tk):
def __init__(self, *args, **kwargs):
self.version = "v0.9.11.21"
self.release = "5.8.2.1"
self.version = "v0.9.11.23"
self.release = "5.8.2.2"

### Window Frame
tk.Tk.__init__(self, *args, **kwargs)
Expand Down Expand Up @@ -935,7 +935,7 @@ def open_img(filename, width=350):
img = Image.open(x)
new_width = width
new_height = int(new_width * img.height / img.width)
img = img.resize((new_width, new_height), Image.ANTIALIAS)
img = img.resize((new_width, new_height), Image.Resampling.LANCZOS)
img = ImageTk.PhotoImage(img)
return img
except:
Expand Down
2 changes: 1 addition & 1 deletion old_glory_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"CSSBeforeThemes": "// Themes applied before CSS Tweaks",
"CSSAfterThemes": "// Themes applied after CSS Tweaks",
"libraryrootFile": "6.css",
"lastPatchedDate": "2022-03-28T13:01:17Z",
"lastPatchedDate": "2022-04-27T01:35:31Z",
"themes": {
"steam-library": {
"author": "Shiina",
Expand Down

0 comments on commit 86f8167

Please sign in to comment.