Merge pull request #1 from joe733/sourcery/master
Sourcery refactored master branch
This commit is contained in:
commit
e3100077b1
6
main.py
6
main.py
@ -36,14 +36,12 @@ def getStats():
|
|||||||
|
|
||||||
def decodeReadme(data: str):
|
def decodeReadme(data: str):
|
||||||
decodedBytes = base64.b64decode(data)
|
decodedBytes = base64.b64decode(data)
|
||||||
decodedStr = str(decodedBytes, "utf-8")
|
return str(decodedBytes, "utf-8")
|
||||||
return decodedStr
|
|
||||||
|
|
||||||
|
|
||||||
def generatenewReadme(stats: str, readme: str):
|
def generatenewReadme(stats: str, readme: str):
|
||||||
statsinReadme = f"{START_COMMENT}\n{stats}\n{END_COMMENT}"
|
statsinReadme = f"{START_COMMENT}\n{stats}\n{END_COMMENT}"
|
||||||
newReadme = re.sub(listReg, statsinReadme, readme)
|
return re.sub(listReg, statsinReadme, readme)
|
||||||
return newReadme
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user