mirror of
https://github.com/placeAtlas/atlas.git
synced 2024-12-27 10:04:02 +01:00
commit
955cad3c96
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@
|
|||
# Two escape it again in the regex parser, so \\\\ is \
|
||||
# Then anything but " or n is replaced with the first capture group (anything but " or n)
|
||||
# Test in repl: re.sub("\\\\([^\"n])", "\\1", "\\t < removed slash, t stays and > stays \\n \\\"")
|
||||
re.sub("\\\\([^\"n])", "\\1", text)
|
||||
text = re.sub("\\\\([^\"n])", "\\1", text)
|
||||
try:
|
||||
text = text.replace("\"id\": 0,", "\"id\": 0,\n\t\t\"submitted_by\": \""+submission.author.name+"\",")
|
||||
except AttributeError:
|
||||
|
|
Loading…
Reference in a new issue