Update: 2026-06-11 18:22:57

This commit is contained in:
Hamza-Ayed
2026-06-11 18:22:59 +03:00
parent c5170a88d2
commit 727068b668
629 changed files with 46050 additions and 46109 deletions

26
cleanup_kazan.py Normal file
View File

@@ -0,0 +1,26 @@
import sys
import re
def cleanup(filepath):
with open(filepath, 'r') as f:
content = f.read()
# Remove double kazan = 8;
content = re.sub(r'\s*double kazan = 8;', '', content)
# Remove unawaited(getKazanPercent());
content = re.sub(r'\s*unawaited\(getKazanPercent\(\)\);', '', content)
# Remove await getKazanPercent();
content = re.sub(r'\s*await getKazanPercent\(\);', '', content)
# Remove getKazanPercent method
kazan_method_pattern = re.compile(r'Future<void> getKazanPercent\(\) async \{.*?\} catch \(e\) \{.*?\}\s*\}', re.DOTALL)
content = kazan_method_pattern.sub('', content)
with open(filepath, 'w') as f:
f.write(content)
print(f"Cleaned up {filepath}")
if __name__ == '__main__':
cleanup(sys.argv[1])