Skip to content

Commit

Permalink
feat: prioritize flash
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroRin committed Jun 6, 2024
1 parent a4ad71e commit 066854d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion commander_new/commander.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,9 @@ def problem_solve(
resource[k] += lp.LpAffineExpression(v)
for k, v in resource.items():
problem += v >= 0, k
problem += resource["score"] + 0.001 * resource["upgrade"]
problem += (
resource["score"] + 0.001 * resource["upgrade"] + 0.001 * resource["e80_10"]
)

problem.solve(self.solver)
u_info, g_info = [], []
Expand Down
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
from gunframe import GunFrame

logger = logging.getLogger(__name__)
__version__ = "12.0.4"
__version__ = "12.0.5"


def download(url, path, max_retry=3, timeout_sec=5):
Expand Down Expand Up @@ -505,7 +505,7 @@ def export(self):
gun_codes[j] = (
f"{record['idx']}-{pos[j%5]}-{record['eid1']}-{record['eid2']}-{record['eid3']}"
)
code = "1|" + ";".join(gun_codes) + "|0"
code = "1|" + ";".join(gun_codes) + f"|{i//5+1}"
code = standard_b64encode(code.encode()).decode()
print(code)
text.insert("end", code + "\n")
Expand Down

0 comments on commit 066854d

Please sign in to comment.