mirror of
https://github.com/RoboSats/robosats.git
synced 2025-01-07 06:50:09 +00:00
Fix do_accounting. Improve ProfileAdmin load time.
This commit is contained in:
parent
a98ff65638
commit
b33b45f7b3
@ -159,6 +159,10 @@ class UserProfileAdmin(AdminChangeLinksMixin, admin.ModelAdmin):
|
|||||||
"num_disputes",
|
"num_disputes",
|
||||||
"lost_disputes",
|
"lost_disputes",
|
||||||
)
|
)
|
||||||
|
raw_id_fields = (
|
||||||
|
"user",
|
||||||
|
"referred_by",
|
||||||
|
)
|
||||||
list_editable = ["pending_rewards", "earned_rewards"]
|
list_editable = ["pending_rewards", "earned_rewards"]
|
||||||
list_display_links = ("avatar_tag", "id")
|
list_display_links = ("avatar_tag", "id")
|
||||||
change_links = ["user"]
|
change_links = ["user"]
|
||||||
|
@ -56,6 +56,7 @@ def do_accounting():
|
|||||||
outflow = offchain_outflow + onchain_outflow
|
outflow = offchain_outflow + onchain_outflow
|
||||||
routing_fees = 0 if routing_fees == None else routing_fees
|
routing_fees = 0 if routing_fees == None else routing_fees
|
||||||
rewards_claimed = 0 if rewards_claimed == None else rewards_claimed
|
rewards_claimed = 0 if rewards_claimed == None else rewards_claimed
|
||||||
|
mining_fees = 0 if mining_fees == None else mining_fees
|
||||||
|
|
||||||
accounted_day = AccountingDay.objects.create(
|
accounted_day = AccountingDay.objects.create(
|
||||||
day = day,
|
day = day,
|
||||||
|
Loading…
Reference in New Issue
Block a user