- Notifications
You must be signed in to change notification settings - Fork 0
Add usage stats and backup backend#20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
0e8f430cfd453570f19b42f7cb508d90de6a67bb7a4a50b8bFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| { | ||
| "name": "Python 3", | ||
| // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile | ||
| "image": "mcr.microsoft.com/devcontainers/python:1-3.11-bookworm", | ||
| "customizations": { | ||
| "codespaces": { | ||
| "openFiles": [ | ||
| "README.md", | ||
| "dashboard/app.py" | ||
| ] | ||
| }, | ||
| "vscode": { | ||
| "settings": {}, | ||
| "extensions": [ | ||
| "ms-python.python", | ||
| "ms-python.vscode-pylance" | ||
| ] | ||
| } | ||
| }, | ||
| "updateContentCommand": "[ -f packages.txt ] && sudo apt update && sudo apt upgrade -y && sudo xargs apt install -y <packages.txt; [ -f requirements.txt ] && pip3 install --user -r requirements.txt; pip3 install --user streamlit; echo '✅ Packages installed and Requirements met'", | ||
| "postAttachCommand": { | ||
| "server": "streamlit run dashboard/app.py --server.enableCORS false --server.enableXsrfProtection false" | ||
| }, | ||
| "portsAttributes": { | ||
| "8501": { | ||
| "label": "Application", | ||
| "onAutoForward": "openPreview" | ||
| } | ||
| }, | ||
| "forwardPorts": [ | ||
| 8501 | ||
| ] | ||
| } |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,139 +1,82 @@ | ||||||||||||||||||||||||||
| # Logs | ||||||||||||||||||||||||||
| logs | ||||||||||||||||||||||||||
| # Miscellaneous | ||||||||||||||||||||||||||
| *.class | ||||||||||||||||||||||||||
| *.log | ||||||||||||||||||||||||||
| npm-debug.log* | ||||||||||||||||||||||||||
| yarn-debug.log* | ||||||||||||||||||||||||||
| yarn-error.log* | ||||||||||||||||||||||||||
| lerna-debug.log* | ||||||||||||||||||||||||||
| # Diagnostic reports (https://nodejs.org/api/report.html) | ||||||||||||||||||||||||||
| report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json | ||||||||||||||||||||||||||
| # Runtime data | ||||||||||||||||||||||||||
| pids | ||||||||||||||||||||||||||
| *.pid | ||||||||||||||||||||||||||
| *.seed | ||||||||||||||||||||||||||
| *.pid.lock | ||||||||||||||||||||||||||
| # Directory for instrumented libs generated by jscoverage/JSCover | ||||||||||||||||||||||||||
| lib-cov | ||||||||||||||||||||||||||
| # Coverage directory used by tools like istanbul | ||||||||||||||||||||||||||
| coverage | ||||||||||||||||||||||||||
| *.lcov | ||||||||||||||||||||||||||
| # nyc test coverage | ||||||||||||||||||||||||||
| .nyc_output | ||||||||||||||||||||||||||
| # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) | ||||||||||||||||||||||||||
| .grunt | ||||||||||||||||||||||||||
| # Bower dependency directory (https://bower.io/) | ||||||||||||||||||||||||||
| bower_components | ||||||||||||||||||||||||||
| # node-waf configuration | ||||||||||||||||||||||||||
| .lock-wscript | ||||||||||||||||||||||||||
| # Compiled binary addons (https://nodejs.org/api/addons.html) | ||||||||||||||||||||||||||
| build/Release | ||||||||||||||||||||||||||
| # Dependency directories | ||||||||||||||||||||||||||
| node_modules/ | ||||||||||||||||||||||||||
| jspm_packages/ | ||||||||||||||||||||||||||
| # Snowpack dependency directory (https://snowpack.dev/) | ||||||||||||||||||||||||||
| web_modules/ | ||||||||||||||||||||||||||
| # TypeScript cache | ||||||||||||||||||||||||||
| *.tsbuildinfo | ||||||||||||||||||||||||||
| # Optional npm cache directory | ||||||||||||||||||||||||||
| .npm | ||||||||||||||||||||||||||
| # Optional eslint cache | ||||||||||||||||||||||||||
| .eslintcache | ||||||||||||||||||||||||||
| # Optional stylelint cache | ||||||||||||||||||||||||||
| .stylelintcache | ||||||||||||||||||||||||||
| # Optional REPL history | ||||||||||||||||||||||||||
| .node_repl_history | ||||||||||||||||||||||||||
| # Output of 'npm pack' | ||||||||||||||||||||||||||
| *.tgz | ||||||||||||||||||||||||||
| # Yarn Integrity file | ||||||||||||||||||||||||||
| .yarn-integrity | ||||||||||||||||||||||||||
| # dotenv environment variable files | ||||||||||||||||||||||||||
| .env | ||||||||||||||||||||||||||
| .env.* | ||||||||||||||||||||||||||
| !.env.example | ||||||||||||||||||||||||||
| # parcel-bundler cache (https://parceljs.org/) | ||||||||||||||||||||||||||
| .cache | ||||||||||||||||||||||||||
| .parcel-cache | ||||||||||||||||||||||||||
| # Next.js build output | ||||||||||||||||||||||||||
| .next | ||||||||||||||||||||||||||
| out | ||||||||||||||||||||||||||
| # Nuxt.js build / generate output | ||||||||||||||||||||||||||
| .nuxt | ||||||||||||||||||||||||||
| dist | ||||||||||||||||||||||||||
| # Gatsby files | ||||||||||||||||||||||||||
| .cache/ | ||||||||||||||||||||||||||
| # Comment in the public line in if your project uses Gatsby and not Next.js | ||||||||||||||||||||||||||
| # https://nextjs.org/blog/next-9-1#public-directory-support | ||||||||||||||||||||||||||
| # public | ||||||||||||||||||||||||||
| # vuepress build output | ||||||||||||||||||||||||||
| .vuepress/dist | ||||||||||||||||||||||||||
| # vuepress v2.x temp and cache directory | ||||||||||||||||||||||||||
| .temp | ||||||||||||||||||||||||||
| *.lock | ||||||||||||||||||||||||||
| *.pyc | ||||||||||||||||||||||||||
| *.swp | ||||||||||||||||||||||||||
| .DS_Store | ||||||||||||||||||||||||||
| .atom/ | ||||||||||||||||||||||||||
| .buildlog/ | ||||||||||||||||||||||||||
| .history | ||||||||||||||||||||||||||
| .svn/ | ||||||||||||||||||||||||||
| # Flutter/Dart | ||||||||||||||||||||||||||
| .dart_tool/ | ||||||||||||||||||||||||||
| .flutter-plugins | ||||||||||||||||||||||||||
| .flutter-plugins-dependencies | ||||||||||||||||||||||||||
| .packages | ||||||||||||||||||||||||||
| .pub-cache/ | ||||||||||||||||||||||||||
| .pub/ | ||||||||||||||||||||||||||
| /build/ | ||||||||||||||||||||||||||
| # Android | ||||||||||||||||||||||||||
| android/app/libs/ | ||||||||||||||||||||||||||
| android/app/src/main/assets/ | ||||||||||||||||||||||||||
| android/app/src/main/res/ | ||||||||||||||||||||||||||
| android/app/src/main/jniLibs/ | ||||||||||||||||||||||||||
| android/app/src/main/obj/ | ||||||||||||||||||||||||||
| android/app/src/main/symbols/ | ||||||||||||||||||||||||||
| android/gradle/ | ||||||||||||||||||||||||||
| android/gradlew | ||||||||||||||||||||||||||
| android/gradlew.bat | ||||||||||||||||||||||||||
| android/local.properties | ||||||||||||||||||||||||||
| android/.gradle | ||||||||||||||||||||||||||
| android/captures/ | ||||||||||||||||||||||||||
| android/gradlew.bat | ||||||||||||||||||||||||||
| android/local.properties | ||||||||||||||||||||||||||
Comment on lines
+30
to
+36
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Duplicate entries: Lines 31 & 35 both list Proposed fix android/gradle/
android/gradlew
android/gradlew.bat
android/local.properties
android/.gradle
android/captures/
-android/gradlew.bat-android/local.properties📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents | ||||||||||||||||||||||||||
| .gradle | ||||||||||||||||||||||||||
| /android/.gradle/ | ||||||||||||||||||||||||||
| # iOS | ||||||||||||||||||||||||||
| ios/Flutter/App.framework | ||||||||||||||||||||||||||
| ios/Flutter/Flutter.framework | ||||||||||||||||||||||||||
| ios/Flutter/Generated.xcconfig | ||||||||||||||||||||||||||
| ios/Flutter/app.flx | ||||||||||||||||||||||||||
| ios/Flutter/app.zip | ||||||||||||||||||||||||||
| ios/Flutter/flutter_assets/ | ||||||||||||||||||||||||||
| ios/ServiceDefinitions.json | ||||||||||||||||||||||||||
| ios/Runner/GeneratedPluginRegistrant.* | ||||||||||||||||||||||||||
| ios/.generated/ | ||||||||||||||||||||||||||
| # Visual Studio Code | ||||||||||||||||||||||||||
| .vscode/ | ||||||||||||||||||||||||||
| # IntelliJ | ||||||||||||||||||||||||||
| .idea/ | ||||||||||||||||||||||||||
| *.iml | ||||||||||||||||||||||||||
| # Python | ||||||||||||||||||||||||||
| __pycache__/ | ||||||||||||||||||||||||||
| *.pyo | ||||||||||||||||||||||||||
| *.pyd | ||||||||||||||||||||||||||
| .Python | ||||||||||||||||||||||||||
| env/ | ||||||||||||||||||||||||||
| venv/ | ||||||||||||||||||||||||||
| pip-log.txt | ||||||||||||||||||||||||||
| pip-delete-this-directory.txt | ||||||||||||||||||||||||||
| .tox/ | ||||||||||||||||||||||||||
| .coverage | ||||||||||||||||||||||||||
| .coverage.* | ||||||||||||||||||||||||||
| .cache | ||||||||||||||||||||||||||
| nosetests.xml | ||||||||||||||||||||||||||
| coverage.xml | ||||||||||||||||||||||||||
| *.cover | ||||||||||||||||||||||||||
| .mypy_cache | ||||||||||||||||||||||||||
| .pytest_cache | ||||||||||||||||||||||||||
| .hypothesise | ||||||||||||||||||||||||||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Typo: The Hypothesis testing library uses -.hypothesise+.hypothesis/📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents | ||||||||||||||||||||||||||
| # Environment Variables | ||||||||||||||||||||||||||
| .env | ||||||||||||||||||||||||||
| # Sveltekit cache directory | ||||||||||||||||||||||||||
| .svelte-kit/ | ||||||||||||||||||||||||||
| # vitepress build output | ||||||||||||||||||||||||||
| **/.vitepress/dist | ||||||||||||||||||||||||||
| # vitepress cache directory | ||||||||||||||||||||||||||
| **/.vitepress/cache | ||||||||||||||||||||||||||
| # Docusaurus cache and generated files | ||||||||||||||||||||||||||
| .docusaurus | ||||||||||||||||||||||||||
| # Serverless directories | ||||||||||||||||||||||||||
| .serverless/ | ||||||||||||||||||||||||||
| # FuseBox cache | ||||||||||||||||||||||||||
| .fusebox/ | ||||||||||||||||||||||||||
| # DynamoDB Local files | ||||||||||||||||||||||||||
| .dynamodb/ | ||||||||||||||||||||||||||
| # Firebase cache directory | ||||||||||||||||||||||||||
| .firebase/ | ||||||||||||||||||||||||||
| # TernJS port file | ||||||||||||||||||||||||||
| .tern-port | ||||||||||||||||||||||||||
| # Stores VSCode versions used for testing VSCode extensions | ||||||||||||||||||||||||||
| .vscode-test | ||||||||||||||||||||||||||
| # yarn v3 | ||||||||||||||||||||||||||
| .pnp.* | ||||||||||||||||||||||||||
| .yarn/* | ||||||||||||||||||||||||||
| !.yarn/patches | ||||||||||||||||||||||||||
| !.yarn/plugins | ||||||||||||||||||||||||||
| !.yarn/releases | ||||||||||||||||||||||||||
| !.yarn/sdks | ||||||||||||||||||||||||||
| !.yarn/versions | ||||||||||||||||||||||||||
| # Vite logs files | ||||||||||||||||||||||||||
| vite.config.js.timestamp-* | ||||||||||||||||||||||||||
| vite.config.ts.timestamp-* | ||||||||||||||||||||||||||
| # Streamlit secrets | ||||||||||||||||||||||||||
| dashboard/.streamlit/secrets.toml | ||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| import os | ||
| from motor.motor_asyncio import AsyncIOMotorClient | ||
| MONGODB_URI = os.environ.get("MONGODB_URI") | ||
| if MONGODB_URI: | ||
| client = AsyncIOMotorClient(MONGODB_URI) | ||
| db = client.get_database("workout_logger") | ||
| else: | ||
| db = None |
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
*.lockwill ignore dependency lock files that should be committed.This pattern will exclude
pubspec.lock(Flutter),package-lock.json,Pipfile.lock,poetry.lock, etc. Dependency lock files are essential for reproducible builds and should generally be tracked in version control. This likely intended to ignore only editor swap/lock files.🐛 Proposed fix
-*.lockIf you need to ignore specific lock files (e.g., editor locks), use a more targeted pattern instead.
📝 Committable suggestion
🤖 Prompt for AI Agents