mirror of
https://github.com/RoboSats/robosats.git
synced 2024-12-13 19:06:26 +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",
|
||||
"lost_disputes",
|
||||
)
|
||||
raw_id_fields = (
|
||||
"user",
|
||||
"referred_by",
|
||||
)
|
||||
list_editable = ["pending_rewards", "earned_rewards"]
|
||||
list_display_links = ("avatar_tag", "id")
|
||||
change_links = ["user"]
|
||||
|
@ -56,6 +56,7 @@ def do_accounting():
|
||||
outflow = offchain_outflow + onchain_outflow
|
||||
routing_fees = 0 if routing_fees == None else routing_fees
|
||||
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(
|
||||
day = day,
|
||||
|
Loading…
Reference in New Issue
Block a user