Skip to content

Commit

Permalink
gui
Browse files Browse the repository at this point in the history
  • Loading branch information
lintan committed Dec 31, 2021
1 parent b4637b3 commit 8e294c8
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 9 deletions.
2 changes: 1 addition & 1 deletion farmer.py
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ def scan_plants(self):
self.log.debug("get_buildings_info:{0}".format(resp.text))
resp = resp.json()
for item in resp["rows"]:
if item["template_id"] == 298592:
if item["template_id"] == 298592 and item["is_ready"] == 1:
slots_num = 8 - item["slots_used"]
if slots_num > 0:
self.plant_corps(slots_num)
Expand Down
8 changes: 0 additions & 8 deletions gui.py

This file was deleted.

50 changes: 50 additions & 0 deletions gui.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# -*- mode: python ; coding: utf-8 -*-


block_cipher = None

add_files = [
('./chromedriver.exe','./'),
('./inject.js','./'),
('./waxjs.js','./'),
('./user.yml','./'),
('./favicon.ico','./'),
]
a = Analysis(['gui.pyw'],
pathex=[],
binaries=[],
datas=add_files,
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)

exe = EXE(pyz,
a.scripts,
[],
exclude_binaries=True,
name='gui',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=False,
disable_windowed_traceback=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None , icon='favicon.ico')
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
upx_exclude=[],
name='gui')

0 comments on commit 8e294c8

Please sign in to comment.