Skip to content

Commit

Permalink
Remove erroneous replace (fixes #74)
Browse files Browse the repository at this point in the history
  • Loading branch information
septatrix committed Oct 26, 2021
1 parent 115bc3b commit 45aa21d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions syncmymoodle/filetree.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ def add_child(self, name: str, id, type: str, url: str) -> Optional["Node"]:

def add_child(self, name: str, id, type: str, url: str = None) -> Optional["Node"]:
if url:
url = url.replace("?forcedownload=1", "").replace(
"mod_page/content/3", "mod_page/content"
)
url = url.replace("?forcedownload=1", "")
url = url.replace("webservice/pluginfile.php", "pluginfile.php")

# Check for duplicate urls and just ignore those nodes:
Expand Down

0 comments on commit 45aa21d

Please sign in to comment.