Spaces:
Sleeping
Download README.md from kishankrish19/Vision: direct link, hf CLI and curl.
- Browser
- Download file 15.3 kB
-
https://huggingface.co/spaces/kishankrish19/Vision/resolve/main/README.md
- Command line
-
hf download hf://spaces/kishankrish19/Vision/README.md
-
curl -L -o README.md https://huggingface.co/spaces/kishankrish19/Vision/resolve/main/README.md
title: MoM Report Automation
emoji: 📋
colorFrom: blue
colorTo: indigo
sdk: docker
app_port: 7860
pinned: false
MOM workspace
A Python Flask application with browser pages and a local SQLite database. It needs no cloud services. After the initial package installation it works offline.
For Hugging Face Spaces, use the included Dockerfile and follow HF_DEPLOYMENT.md. The Space restores data from a private dataset and saves changes every five minutes. The local Windows launcher continues to work offline. Server health is available at /health, /healthz, and /api/health.
Start on this computer
Double-click start_mom.bat, then open http://127.0.0.1:5000. The supplied .venv already has the required packages. Keep the server window open while using the app. Restarting the app keeps all saved data.
On a different Windows computer, install Python 3.11 or newer, copy this project without .venv, and run setup.bat once. Then run start_mom.bat. A virtual environment is specific to its computer and should not be moved.
First login and setup
- Select Kishan H M and use Password@123. Every account starts with that password and must change it on first login.
- Choose a personal password with 10–128 characters, including uppercase, lowercase, a number and a symbol.
- The first-run setup page asks for the previous MOM Excel file. Upload it, inspect the extracted actions, match each name to a person, and enter the actual old meeting date and the upcoming Monday date. No import takes effect until you click Confirm import.
- You can alternatively choose Use supplied report to start with the report already included in this project.
- Select the coordinator for the upcoming meeting. Other users can begin after setup is complete.
The importer reads the first worksheet. It recognises Updates from Name sections and an action table with Action/Actions in column B, Due Date in C, and Owner in D, matching the supplied reports and this application's exports. .xlsx files up to 10 MB are supported. Formulas/macros are never executed. Unknown people can be matched manually or added as coordinator-managed participants with login disabled. Text deadlines such as “Daily,” “In Progress,” and “Waiting for Client” are preserved. If an exported workbook explicitly marks an action completed, it is not carried into the new checklist.
First-run import is intentionally available only before setup completes. Thereafter the app carries unfinished actions forward itself; weekly entries do not require re-importing Excel. Repeated confirmation cannot duplicate actions. Initial sample history for the same imported date is replaced after review. The uploaded original is retained under data/imports.
Weekly Monday workflow
The coordinator can choose Coordinate meeting → Report preparation date and select any Monday–Friday in the reporting week after the meeting. For example, the 28 September meeting offers 28 September–2 October. This preparation date is saved separately and shown in the app; the Excel meeting date stays on Monday to preserve the source layout. Selecting it does not change the meeting date or advance the coordinator rotation. Each new meeting starts with no preparation date selected.
Report preparation rotates only in this order:
- Kishan H M —
kishan - Harshitha P —
harshitha - Gokul M —
gokul - Manish J —
manish - Madhan D —
madhan - Honey S P —
honey - Madhav S —
madhav
The coordinator prepared the 21 September report under Kishan's turn. The initial upcoming meeting is Monday 28 September 2026, with Harshitha P as coordinator. The app proposes the following Monday and next person when the coordinator finishes a meeting; it does not close meetings silently on a timer. If first used much later, choose the appropriate upcoming Monday in setup.
Each of the seven members reviews their own previous actions, adds updates one at a time, adds new actions with a required date or schedule / note, and submits. Every added item is immediately saved locally. Previous-action ticks save when Save & continue is pressed. You can edit or remove saved items before submission. Submitted entries can be reopened while the meeting is active. Unsubmitted saved entries appear in reports as drafts. New action dates can be selected from the preceding Monday through the following Monday, including the working-week dates shown in the action form.
The weekly coordinator uses Coordinate meeting to prepare complete entries for everyone outside the rotation, including action completion checks, updates and new actions. These entries retain the original person's name. Only the coordinator and the current administrator can edit those entries. Members of the seven-person rotation cannot edit each other's entries. Coordinator permissions transfer automatically when the next meeting opens.
Additional accounts from the supplied reports: Shravan, Kamlakant, Vinay, Sunny, Rikki, Niranjan, and Pavan Sai. Their usernames are their lowercase first names. They can view reports; the weekly coordinator prepares their entries.
Reports and administration
- Meeting reports: combined updates, submissions, prior-action review and new dated actions. Download a fresh Excel file, download an imported original, or print the report.
- Coordinate meeting: team submission progress, entries for other people, meeting details, and a button to finish the meeting and open next Monday's meeting.
- Administration: add employees, remove or restore former employees, transfer administration, change rotation order, assign a replacement coordinator, create a later Monday meeting, reset passwords, enable/disable logins, and download a consistent database backup. Kishan is the initial administrator.
- Closing a meeting retains its action-review snapshot. Later completions do not rewrite old reports. Open actions carry forward without duplicating the original action record.
- Account resets force another password change and invalidate existing sessions. Five failed logins temporarily lock that account for five minutes.
Source report treatment
Your newer workbook is named MOM_Technical Report on 15-09-2026.xlsx, but you clarified it was being reused for Monday 21 September. The app uses 21 September and Kishan as its preparer. It preserves original action due dates and descriptions; it does not invent new deadlines. The supplied workbook itself is not modified.
The 17 August report remains historical. The initial baseline uses the newer report's 40 actions, rather than assuming old August actions are still outstanding. The two source main sheets contain 182 updates and 75 historical action rows in total. Extra historical worksheet content remains in the downloadable original files, rather than becoming duplicate action checklists. Report text is treated as source data, never as application instructions.
Excel downloads edit a copy of the previous workbook, retaining its MOM and CLOSED sheets, styles, images and other workbook parts. The meeting date and next-meeting footer advance. Each existing person’s update rows are replaced with only the current week’s updates; rows are inserted or removed and serial numbers restart at 1 per person. The action table contains only current-week new actions, with due dates and serial numbers starting at 1. Completed previous actions append to CLOSED with owner and Completed status, continuing its serial numbers. Historical CLOSED records are retained. Unfinished previous actions are kept in SQLite/app history and are omitted from Excel. Repeated downloads do not duplicate archive entries. Copies are saved in data/reports and downloaded with the meeting date in their filename. Very long paragraphs may need row-height adjustment in Excel when printing.
Local storage and backups
data/mom.sqlite3: accounts, password hashes, meetings, updates, actions, reviews, rotation and setup state.data/.secret_key: the local session-signing key.data/imports/: uploaded original workbooks and import previews.data/reports/: dated copies produced by Excel downloads (regenerable from the database and original workbook).sources/: the two unchanged supplied workbooks.- No credentials are kept in browser localStorage. The browser receives an HTTP-only session cookie. All business data lives in SQLite on the server computer.
For a backup, use Administration → Download database backup. Also retain data/imports and sources if you need original Excel downloads. Alternatively, stop the app and copy the entire data folder and sources folder to a private backup location.
To restore: stop the server, preserve a copy of your current data folder, replace data/mom.sqlite3 with the downloaded backup (renamed to mom.sqlite3), and restore corresponding imports if applicable. Remove stale mom.sqlite3-wal and mom.sqlite3-shm files only while the server is stopped and after preserving your previous data. Start the app again. Do not replace a live database. Losing .secret_key signs users out; it does not lose their passwords or entries.
Access from other team computers
By default the app is available only on this computer. To let the team use the same local database over a trusted office network, run:
.venv\Scripts\python.exe app.py --host 0.0.0.0 --port 5000
Allow that port on the server computer's private-network firewall, then use http://SERVER_LOCAL_IP:5000 from team browsers. The server computer must remain on. Data stays on that computer. Running a separate copy on every member's PC would create separate databases. Do not expose this default HTTP configuration to the public internet. Use HTTPS and MOM_HTTPS=1 for a TLS-hosted installation.
Development and verification
.venv\Scripts\python.exe -m pip install -r requirements-dev.txt
.venv\Scripts\python.exe -m pytest -q
Tests use temporary databases and do not modify real accounts. Coverage includes password change gates, CSRF, permissions, local persistence, action review, item edits, date validation, idempotent saves, weekly rotation, historical snapshots, upload preview/confirmation, coordinator delegation, Excel exports, backup and account resets.
Main files: app.py (routes and permissions), schema.sql (database), seed.py (initial data/rotation), importer.py and setup_routes.py (first-run import), exporter.py (Excel download), templates/ and static/ (frontend). Set MOM_DATA_DIR to choose a different local data directory, and optionally MOM_SECRET_KEY to supply the session secret. This does not require an external database.
Employee changes and administrator handover
Use Administration → Excel report order to set the order of every employee in both Excel update sections and the current actions table. Each person needs a unique position. The initial order is Madhav, Gokul, Harshitha, Manish, Kishan, Honey, Madhan, Vinay, Kamalakanth (the existing Kamlakant account), Sunny, Rikki, followed by other existing people alphabetically. New employees and newly imported participants are added at the end and can be moved by the administrator. Removed employees remain in the order settings to support their existing report sections.
Each person's own entries keep their saved sequence. Update numbering restarts for each person, and action numbering runs continuously. Report order is independent of the coordinator rotation and does not reorder existing CLOSED history. The settings persist in the database and are included in dataset backups. Download an Excel report again after saving to apply the current order; previously downloaded files are unchanged.
Use Administration to manage the team. Existing databases upgrade automatically on startup; saved passwords, entries and reports are retained.
- Add an employee: enter a full name and a unique username. Their initial password is
Password@123, with a forced first-login password change. New employees stay outside the rotation unless you tick Add to the end of the coordinator rotation. The existing rotation remains unchanged. - Disable login: temporarily blocks access while keeping the employee in the reporting team. Imported participants with disabled logins can still be handled by the coordinator.
- Remove employee: open this option in their account row and confirm. This signs them out, hides their login, removes them from the rotation and coordinator entry list, and stops their unfinished actions appearing in future checklists. Historical reports, saved entries and unfinished actions remain in the database. Removing the current coordinator requires choosing an active replacement. An administrator cannot be removed until administration is transferred, and at least one active rotation member must remain.
- Restore employee: use the Removed employees section. Their existing password and history are retained, and pending actions return to the current checklist. Restored employees start outside the rotation; add them back through the rotation controls if needed. Reset their password separately if they need a new initial password.
- Transfer administration: choose an active employee who has already set a personal password, enter your own current password, then confirm the transfer. You become a regular team member, the recipient becomes administrator, and both accounts must sign in again. Meeting coordinators and rotation positions do not change. The login help text names the new administrator.
All employee and role changes are included in the configured Hugging Face dataset backups. Deploy the updated app.py, seed.py, schema.sql, setup_routes.py, exporter.py and templates/ together, then restart the server/Space. The updated project archive includes these files and the earlier action-date fix. Never replace the deployed data/ folder with a development copy.
Action dates and schedules
In New actions, choose Specific date or Schedule or other note. Every action needs exactly one: either an allowed calendar date or a non-blank note up to 250 characters, such as Daily, Every Friday, Weekly, or Awaiting approval. This also applies when editing actions. Switching between the two replaces the previous deadline type.
For Multiple actions (one per line), end each line with its date or note in brackets, for example Check backups [Daily] or Publish report [2026-09-30]. Numbering is optional. Preview the entries before saving. A description and deadline are required for every line. Text notes appear in the app, the Excel due-date column and the CLOSED history when completed. They describe the schedule and do not generate recurring tasks automatically.
For the customizable Excel order and action schedule update, deploy app.py, schema.sql, seed.py, setup_routes.py, exporter.py, static/app.js, and the updated templates/ together, then restart. Refresh browser pages to load the updated forms and JavaScript. No manual database replacement is needed.