Skip to content

Fix get_user_history #658

@Valera56pub

Description

@Valera56pub

Guideline

  1. Carefully read the issue description before applying to ensure you have all the necessary information to start working on it.
  2. Write a brief description of how you will approach the task (without using ChatGPT).
  3. Add your Telegram handler in your application (e.g., in OnlyDust or similar)
  4. Write ETA in your application

What should I do if I have a problem

  1. Try to google it before asking. Googling is taking major part of dev work
  2. If you couldn't find answer your question with Google, text your question to dev group with your question.
  3. Do not send DM to maintainer, it would be better and faster to ask other contributors in chat

How to prepare PR

  1. Check if your code smell good
  2. Add close # to link your issue with your PR
  3. Do not commit changes which is not related to your task
  4. Check after you created PR, if you committed everything.

Task description

  1. Go to apps/dashboard_app/charts/main.py uncomment
  # self.get_user_history("0x04d0390b777b424e43839cd1e744799f3de6c176c7e32c1812a41dbd9c19db6a")
  1. Run docker compose -f devops/dev/docker-compose.dashboard-app.yaml up --build
  2. Once started Go to http://0.0.0.0:8501 and wait...
  3. Check the error:
File "/usr/local/lib/python3.12/site-packages/streamlit/runtime/scriptrunner/exec_code.py", line 88, in exec_func_with_error_handling
    result = func()
             ^^^^^^
File "/usr/local/lib/python3.12/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 579, in code_to_exec
    exec(code, module.__dict__)
File "/app/dashboard_app/dashboard.py", line 35, in <module>
    dashboard.run()
File "/app/dashboard_app/charts/main.py", line 584, in run
    self.get_user_history("0x04d0390b777b424e43839cd1e744799f3de6c176c7e32c1812a41dbd9c19db6a")
File "/app/dashboard_app/charts/main.py", line 461, in get_user_history
    user_data = get_user_history(wallet_id)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^

Your task is to review the functions and fix all errors. The wallet is a stub - you can use any

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions