Skip to content

Commit

Permalink
Merge pull request #589 from panther7/improvements
Browse files Browse the repository at this point in the history
Improvements
  • Loading branch information
marticliment authored Jan 12, 2023
2 parents 3b99c83 + 6232a37 commit 2744115
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/download_translations.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
print(sys.argv[1])


apiurl = f"https://app.tolgee.io/v2/projects/1205/export?format=JSON&splitByScope=false&splitByScopeDelimiter=~&splitByScopeDepth=0&filterState=UNTRANSLATED&filterState=TRANSLATED&filterState=REVIEWED&zip=true&ak={apikey}"
apiurl = f"https://app.tolgee.io/v2/projects/1205/export?format=JSON&structureDelimiter=&filterState=UNTRANSLATED&filterState=TRANSLATED&filterState=REVIEWED&zip=true"

try:
import requests
Expand All @@ -50,7 +50,7 @@
print(" Downloading updated translations...")


response = requests.get(apiurl)
response = requests.get(apiurl, headers={"X-API-Key": apikey})
if (not response.ok):
statusCode = response.status_code
print(f" Error {statusCode}: {response.text}")
Expand Down
2 changes: 2 additions & 0 deletions wingetui/uiSections.py
Original file line number Diff line number Diff line change
Expand Up @@ -2605,6 +2605,8 @@ def __init__(self):


def loadBuckets(self):
if getSettings("DisableScoop"):
return
for i in range(self.bucketList.topLevelItemCount()):
item = self.bucketList.takeTopLevelItem(0)
del item
Expand Down

0 comments on commit 2744115

Please sign in to comment.