How sitremas/hlidaci-pes works
This is a Flask TicketSwap listing monitor. Users preview an event, add it with an optional price limit, and view or deactivate tracked events and their notification history. A scheduled check fetches listings, applies the limit, records qualifying notifications, and sends Telegram messages. The excerpt shows these responsibilities concentrated in app.py; omitted sections prevent confirming some route and database details, so the graph avoids unsupported links.
Main entry points: app.py Event checker · index.html Event UI
Components 13
Web interface
- Event UI
templates/index.html - Flask routes
app.py - Event preview
app.py
Listing monitor
- Scheduled checks
app.py - Event checker
app.py - Listing fetcher
app.py - Price qualification
app.py
Tracking state
- Tracked events
app.py - Notification history
app.py
Notifications
- Telegram sender
app.py
Other components
- User
- TicketSwap API
- Telegram API
Connections 14
- User → Event UI: uses
- Event UI → Flask routes: calls API
- Flask routes → Event preview: routes preview
app.py - Event preview → Listing fetcher: fetches listings
app.py - Scheduled checks → Event checker: runs every five minutes
app.py - Event checker → Tracked events: reads events
app.py - Event checker → Listing fetcher: fetches listings
app.py - Listing fetcher → TicketSwap API: requests data
app.py - Event checker → Price qualification: checks price
app.py - Event checker → Telegram sender: sends qualifying alerts
app.py - Event checker → Notification history: records alerts
app.py - Telegram sender → Telegram API: posts message
app.py - Flask routes → Tracked events: manages events
app.py - Flask routes → Notification history: reads history
app.py