louisa-uno / dmarket_bot

This repository is an english translation of https://github.com/timagr615/dmarket_bot
14 stars 2 forks source link

create_pre_base gets the items but doesn't save/store them (Bug) #13

Closed Cfomodz closed 8 months ago

Cfomodz commented 8 months ago

image

2024-01-19 12:12:20.538 | DEBUG    | api.dmarketapi:generate_headers:32 - string_to_sign: GET/trade-aggregator/v1/last-sales?gameId=rust&title=Zucchini+Furnace
2024-01-19 12:12:20.700 | DEBUG    | modules.skinbase:filter_skins:61 - History: 20
2024-01-19 12:12:20.700 | DEBUG    | modules.skinbase:filter_skins:58 - Game: Games.RUST. Get history for uMod Fundraiser Garage Door
2024-01-19 12:12:20.701 | DEBUG    | api.dmarketapi:generate_headers:32 - string_to_sign: GET/trade-aggregator/v1/last-sales?gameId=rust&title=uMod+Fundraiser+Garage+Door
2024-01-19 12:12:20.864 | DEBUG    | modules.skinbase:filter_skins:61 - History: 20
2024-01-19 12:12:20.864 | DEBUG    | modules.skinbase:filter_skins:58 - Game: Games.RUST. Get history for СМЭРТЬ
2024-01-19 12:12:20.864 | DEBUG    | api.dmarketapi:generate_headers:32 - string_to_sign: GET/trade-aggregator/v1/last-sales?gameId=rust&title=%D0%A1%D0%9C%D0%AD%D0%A0%D0%A2%D0%AC
2024-01-19 12:12:21.044 | DEBUG    | modules.skinbase:filter_skins:61 - History: 20
2024-01-19 12:12:21.045 | INFO     | modules.skinbase:update_base:91 - Total skins analyzed: 0
2024-01-19 12:12:21.045 | INFO     | modules.skinbase:update_base:91 - Total skins analyzed: 0
2024-01-19 12:12:21.063 | INFO     | modules.skinbase:update:99 - No skins to update are available.
2024-01-19 12:12:21.063 | INFO     | modules.skinbase:update:99 - No skins to update are available.
2024-01-19 12:12:21.064 | INFO     | modules.skinbase:update:102 - The skin/item database was updated 8.35 minutes.
2024-01-19 12:12:21.064 | INFO     | modules.skinbase:update:102 - The skin/item database was updated 8.35 minutes.
2024-01-19 12:12:21.064 | DEBUG    | __main__:create_pre_base:23 - Skin database sleep
2024-01-19 12:12:23.537 | DEBUG    | __main__:orders_loop:33 - orders loop
2024-01-19 12:12:23.537 | DEBUG    | __main__:orders_loop:35 - Balance: 734
2024-01-19 12:12:23.537 | DEBUG    | __main__:orders_loop:37 - Balance is enough to place orders, calling update_orders()
2024-01-19 12:12:23.538 | DEBUG    | modules.orders:update_orders:256 - Update orders
2024-01-19 12:12:23.538 | DEBUG    | modules.orders:skins_to_buy:178 - ALL SKINS 0
2024-01-19 12:12:23.538 | INFO     | modules.orders:skins_to_buy:181 - SKINS 0
2024-01-19 12:12:23.538 | INFO     | modules.orders:skins_to_buy:181 - SKINS 0
2024-01-19 12:12:23.539 | DEBUG    | modules.orders:skins_to_buy:199 - Database of orders was updated 0.0 sec.
2024-01-19 12:12:23.539 | DEBUG    | modules.orders:update_orders:258 - Skins to buy: 0
2024-01-19 12:12:23.540 | DEBUG    | api.dmarketapi:generate_headers:32 - string_to_sign: GET/marketplace-api/v1/user-targets?BasicFilters.Status=TargetStatusActive&GameId=rust&BasicFilters.Currency=USD&Limit=1000&SortType=UserTargetsSortTypeDefault
2024-01-19 12:12:23.712 | DEBUG    | api.dmarketapi:user_targets:230 - user_targets() count: 0
2024-01-19 12:12:23.712 | ERROR    | __main__:orders_loop:48 -  Failed to update database of orders: list index out of range. Sleep for 5 seconds.
Cfomodz commented 8 months ago

Fixed, will mention with next PR