-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathupload.py
37 lines (31 loc) · 1.2 KB
/
upload.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
from pywikibot.login import ClientLoginManager
from helpers.CodeReader import IdleonReader
from repositories.collections.EnemyRepo import EnemyRepo
from repositories.collections.ItemRepo import ItemRepo
from repositories.enemies.DropTableRepo import DropTableRepo
from repositories.item.RecipeRepo import RecipeRepo
from repositories.npc.NpcRepo import NpcRepo
loginManager = ClientLoginManager()
loginManager.login()
newV = IdleonReader("2.10", True)
oldV = IdleonReader("2.09", True)
upload = True
# ItemRepo.initialise(oldV.codeReader, log = False)
# EnemyRepo.initialise(oldV.codeReader, log = False)
# NpcRepo.initialise(oldV.codeReader, log = False)
# DropTableRepo.initialise(oldV.codeReader, log = False)
# #
# ItemRepo._manualOld()
# EnemyRepo._manualOld()
# NpcRepo._manualOld()
# DropTableRepo._manualOld()
ItemRepo.initialise(newV.codeReader, log = False)
EnemyRepo.initialise(newV.codeReader, log = False)
NpcRepo.initialise(newV.codeReader, log = False)
DropTableRepo.initialise(newV.codeReader, log = False)
RecipeRepo.initialise(newV.codeReader, log = False)
ItemRepo.upload(not upload)
EnemyRepo.upload(not upload)
NpcRepo.upload(not upload)
DropTableRepo.upload(not upload)
RecipeRepo.upload(not upload)