aOnly set reversed flag for ads type swaps.

This commit is contained in:
tecnovert committed 2023-12-01 14:46:57 +02:00
1 parent 5b6f447692
commit a4c79fb7aa
2 files changed
+6 -4

No files matched your search

+2 -2
View File
@@ -488,7 +488,7 @@ def page_offer(self, url_split, post_string):
ci_from = swap_client.ci(Coins(offer.coin_from))
ci_to = swap_client.ci(Coins(offer.coin_to))
reverse_bid: bool = swap_client.is_reverse_ads_bid(offer.coin_from)
reverse_bid: bool = True if offer.bid_reversed else False
# Set defaults
debugind = -1
@@ -590,7 +590,7 @@ def page_offer(self, url_split, post_string):
'is_expired': offer.expire_at <= now,
'active_ind': offer.active_ind,
'swap_type': strSwapDesc(offer.swap_type),
'reverse': offer.bid_reversed
'reverse': reverse_bid,
}
data.update(extend_data)