mirror of
https://github.com/arcan1s/ffxivbis.git
synced 2025-04-25 17:57:17 +00:00
even better tempaltes
This commit is contained in:
parent
59051dee7a
commit
39be8cebf1
@ -25,7 +25,7 @@
|
|||||||
<input name="is_tome" id="is_tome" title="is tome" type="checkbox"/>
|
<input name="is_tome" id="is_tome" title="is tome" type="checkbox"/>
|
||||||
<input name="action" id="action" type="hidden" value="add"/>
|
<input name="action" id="action" type="hidden" value="add"/>
|
||||||
<input name="method" id="method" type="hidden" value="post"/>
|
<input name="method" id="method" type="hidden" value="post"/>
|
||||||
<input name="add" id="add" type="button" value="add"/>
|
<input name="add" id="add" type="submit" value="add"/>
|
||||||
</form>
|
</form>
|
||||||
<form action="/bis" method="post">
|
<form action="/bis" method="post">
|
||||||
<select name="player" id="player" title="player">
|
<select name="player" id="player" title="player">
|
||||||
@ -35,7 +35,7 @@
|
|||||||
</select>
|
</select>
|
||||||
<input name="bis" id="bis" placeholder="player bis link" title="bis" type="text"/>
|
<input name="bis" id="bis" placeholder="player bis link" title="bis" type="text"/>
|
||||||
<input name="method" id="method" type="hidden" value="put"/>
|
<input name="method" id="method" type="hidden" value="put"/>
|
||||||
<input name="add" id="add" type="button" value="add"/>
|
<input name="add" id="add" type="submit" value="add"/>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<table id="result">
|
<table id="result">
|
||||||
@ -57,7 +57,8 @@
|
|||||||
<input name="piece" id="piece" type="hidden" value="{{ item.piece|e }}"/>
|
<input name="piece" id="piece" type="hidden" value="{{ item.piece|e }}"/>
|
||||||
<input name="is_tome" id="is_tome" type="hidden" value="{{ item.is_tome|e }}"/>
|
<input name="is_tome" id="is_tome" type="hidden" value="{{ item.is_tome|e }}"/>
|
||||||
<input name="action" id="action" type="hidden" value="remove"/>
|
<input name="action" id="action" type="hidden" value="remove"/>
|
||||||
<input name="remove" id="remove" type="button" value="x"/>
|
<input name="method" id="method" type="hidden" value="post"/>
|
||||||
|
<input name="remove" id="remove" type="submit" value="x"/>
|
||||||
</form>
|
</form>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
</select>
|
</select>
|
||||||
<input name="is_tome" id="is_tome" title="is tome" type="checkbox"/>
|
<input name="is_tome" id="is_tome" title="is tome" type="checkbox"/>
|
||||||
<input name="action" id="action" type="hidden" value="add"/>
|
<input name="action" id="action" type="hidden" value="add"/>
|
||||||
<input name="add" id="add" type="button" value="add"/>
|
<input name="add" id="add" type="submit" value="add"/>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<table id="result">
|
<table id="result">
|
||||||
@ -46,7 +46,7 @@
|
|||||||
<input name="piece" id="piece" type="hidden" value="{{ item.piece|e }}"/>
|
<input name="piece" id="piece" type="hidden" value="{{ item.piece|e }}"/>
|
||||||
<input name="is_tome" id="is_tome" type="hidden" value="{{ item.is_tome|e }}"/>
|
<input name="is_tome" id="is_tome" type="hidden" value="{{ item.is_tome|e }}"/>
|
||||||
<input name="action" id="action" type="hidden" value="remove"/>
|
<input name="action" id="action" type="hidden" value="remove"/>
|
||||||
<input name="remove" id="remove" type="button" value="x"/>
|
<input name="remove" id="remove" type="submit" value="x"/>
|
||||||
</form>
|
</form>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</select>
|
</select>
|
||||||
<input name="is_tome" id="is_tome" title="is tome" type="checkbox"/>
|
<input name="is_tome" id="is_tome" title="is tome" type="checkbox"/>
|
||||||
<input name="suggest" id="suggest" type="button" value="suggest"/>
|
<input name="suggest" id="suggest" type="submit" value="suggest"/>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<table id="result">
|
<table id="result">
|
||||||
@ -39,7 +39,8 @@
|
|||||||
<input name="player" id="player" type="hidden" value="{{ player.player|e }}"/>
|
<input name="player" id="player" type="hidden" value="{{ player.player|e }}"/>
|
||||||
<input name="piece" id="piece" type="hidden" value="{{ item.piece|e }}"/>
|
<input name="piece" id="piece" type="hidden" value="{{ item.piece|e }}"/>
|
||||||
<input name="is_tome" id="is_tome" type="hidden" value="{{ item.is_tome|e }}"/>
|
<input name="is_tome" id="is_tome" type="hidden" value="{{ item.is_tome|e }}"/>
|
||||||
<input name="action" id="action" type="hidden" value="remove"/>
|
<input name="action" id="action" type="hidden" value="add"/>
|
||||||
|
<input name="add" id="add" type="submit" value="add"/>
|
||||||
</form>
|
</form>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
<input name="bis" id="bis" placeholder="player bis link" title="bis" type="text"/>
|
<input name="bis" id="bis" placeholder="player bis link" title="bis" type="text"/>
|
||||||
<input name="priority" id="priority" placeholder="player priority" title="priority" type="number" value="0"/>
|
<input name="priority" id="priority" placeholder="player priority" title="priority" type="number" value="0"/>
|
||||||
<input name="action" id="action" type="hidden" value="add"/>
|
<input name="action" id="action" type="hidden" value="add"/>
|
||||||
<input name="add" id="add" type="button" value="add"/>
|
<input name="add" id="add" type="submit" value="add"/>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<table id="result">
|
<table id="result">
|
||||||
@ -46,7 +46,7 @@
|
|||||||
<input name="nick" id="nick" type="hidden" value="{{ player.nick|e }}"/>
|
<input name="nick" id="nick" type="hidden" value="{{ player.nick|e }}"/>
|
||||||
<input name="job" id="job" type="hidden" value="{{ player.job|e }}"/>
|
<input name="job" id="job" type="hidden" value="{{ player.job|e }}"/>
|
||||||
<input name="action" id="action" type="hidden" value="remove"/>
|
<input name="action" id="action" type="hidden" value="remove"/>
|
||||||
<input name="remove" id="remove" type="button" value="x"/>
|
<input name="remove" id="remove" type="submit" value="x"/>
|
||||||
</form>
|
</form>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -16,17 +16,17 @@ def test_loot_count(player: Player, head_with_upgrade: Piece, weapon: Piece) ->
|
|||||||
|
|
||||||
|
|
||||||
def test_loot_count_bis(player: Player, head_with_upgrade: Piece, weapon: Piece) -> None:
|
def test_loot_count_bis(player: Player, head_with_upgrade: Piece, weapon: Piece) -> None:
|
||||||
assert abs(player.loot_count_bis(head_with_upgrade)) == 0
|
assert abs(player.loot_count_total_bis(head_with_upgrade)) == 0
|
||||||
assert abs(player.loot_count_bis(weapon)) == 0
|
assert abs(player.loot_count_total_bis(weapon)) == 0
|
||||||
|
|
||||||
player.bis.set_item(head_with_upgrade)
|
player.bis.set_item(head_with_upgrade)
|
||||||
player.loot.append(head_with_upgrade)
|
player.loot.append(head_with_upgrade)
|
||||||
assert abs(player.loot_count_bis(head_with_upgrade)) == 1
|
assert abs(player.loot_count_total_bis(head_with_upgrade)) == 1
|
||||||
assert abs(player.loot_count_bis(weapon)) == 1
|
assert abs(player.loot_count_total_bis(weapon)) == 1
|
||||||
|
|
||||||
player.bis.set_item(weapon)
|
player.bis.set_item(weapon)
|
||||||
assert abs(player.loot_count_bis(head_with_upgrade)) == 1
|
assert abs(player.loot_count_total_bis(head_with_upgrade)) == 1
|
||||||
assert abs(player.loot_count_bis(weapon)) == 1
|
assert abs(player.loot_count_total_bis(weapon)) == 1
|
||||||
|
|
||||||
|
|
||||||
def test_loot_count_total(player: Player, head_with_upgrade: Piece, weapon: Piece) -> None:
|
def test_loot_count_total(player: Player, head_with_upgrade: Piece, weapon: Piece) -> None:
|
||||||
|
Loading…
Reference in New Issue
Block a user