diff --git a/ErpSnap.spec b/ErpSnap.spec new file mode 100644 index 0000000..996efa3 --- /dev/null +++ b/ErpSnap.spec @@ -0,0 +1,38 @@ +# -*- mode: python ; coding: utf-8 -*- + + +a = Analysis( + ['main.py'], + pathex=[], + binaries=[], + datas=[('assets', 'assets/')], + hiddenimports=[], + hookspath=[], + hooksconfig={}, + runtime_hooks=[], + excludes=[], + noarchive=False, +) +pyz = PYZ(a.pure) + +exe = EXE( + pyz, + a.scripts, + a.binaries, + a.datas, + [], + name='ErpSnap', + debug=False, + bootloader_ignore_signals=False, + strip=False, + upx=True, + upx_exclude=[], + runtime_tmpdir=None, + console=False, + disable_windowed_traceback=False, + argv_emulation=False, + target_arch=None, + codesign_identity=None, + entitlements_file=None, + icon=['assets\\logo.ico'], +) diff --git a/README.md b/README.md index 16066ae..14f3ce0 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,40 @@ -# ErpSnap2 +# ErpSnap -ErpSnap2 is a widget application that provides a one-click interface to view the latest information from the PSIT ERP. It saves time by directly fetching data from APIs, allowing users to quickly access the information they need. +A widget application that provides a one-click interface to view the latest info from PSIT ERP. It saves time by directly fetching data from APIs, allowing users to quickly access the information they need. + +## Installation FAQ + +
+How to install ErpSnap? + +1. Download the [latest release](https://github.com/ashishjii/ErpSnap/releases/latest) and install it. +3. After installation, find ErpSnap in the Start menu or use the desktop shortcut. +4. On initial launch, click the refresh button in the top-right corner to input credentials. +
+ +
+I'm seeing a Windows Defender SmartScreen warning. What should I do? +If you encounter a Windows Defender SmartScreen warning, click on "More info" and then click "Run anyway". This warning appears because the program is not digitally signed with an **Extended Validation (EV) code signing certificate**, which costs around $300-$800. Rest assured, ErpSnap is not a virus. +
+ +
+How do I exit the app? +To exit the application, click on the info button located at the top right corner of the screen, then click "Exit application". +
+ +
+I entered my username and details incorrectly. What should I do? +If you've entered your username and/or details incorrectly, you can reset them by deleting the credentials file located at `%AppData%/ErpSnap`. To do this, open your file manager and copy-paste the provided location into the address bar. After deleting the file, restart the application, and you will be prompted to enter your credentials again. +
## Features | Feature | Status | |-|-| | Draggable widget | ✔️ | -| Does not appears in taskbar | ✔️ | +| Does not appear in taskbar | ✔️ | | Installation file created | ✔️ | -| Aut0ostarts on Windows boot | ✔️ | +| Autostarts on Windows boot | ✔️ | | Prompt for roll/pass on initial run | ✔️ | | Move request call to dedicated worker thread | ✔️ | | Provide progress indicators for logging and data retrieval | ✔️ | @@ -24,31 +49,13 @@ ErpSnap2 is a widget application that provides a one-click interface to view the | Add option to re-enter info | | >[!NOTE] ->Consider using `urllib3` instead of `requests` library to reduce third party dependency requirements. - -## Installation FAQ - -#### How do I install ErpSnap2? - -1. Download the Latest Release: Visit the [latest release](https://github.com/ashishjii/ErpSnap/releases/latest) page on GitHub and download the ErpSnap setup file. -2. Run the Setup: Double-click the downloaded file (ErpSnapSetup.exe) to start installation. -3. Once the installation is complete, you can launch ErpSnap from the Start menu or desktop shortcut. -4. On initial launch, click the refresh button in the top-right corner to enter credentials. - -#### I'm seeing a Windows Defender SmartScreen warning. What should I do? - -If you encounter a Windows Defender SmartScreen warning, click on "More info" and then click "Run anyway". This warning appears because the program is not digitally signed with an **Extended Validation (EV) code signing certificate**, which costs around $300-$800. Rest assured, ErpSnap is not a virus. - -#### How do I exit the app? - -To exit the application, click on the info button located at the top right corner of the screen, then click "Exit application". - -#### I entered my username and details incorrectly. What should I do? - -If you've entered your username and/or details incorrectly, you can reset them by deleting the credentials file located at `%AppData%/ErpSnap`. To do this, open your file manager and copy-paste the provided location into the address bar. After deleting the file, restart the application, and you will be prompted to enter your credentials again. +>Consider using `urllib3` instead of `requests` library to reduce third-party dependency requirements. ## Contributing +
+Contribution Guidelines + 1. Clone the repository: ```bash git clone https://github.com/AshishJii/ErpSnap.git @@ -71,8 +78,8 @@ pyinstaller --noconfirm --onefile --windowed --icon "assets/logo.ico" --name "Er - Fork the repository. - Make your changes in a feature branch. - Submit a pull request with your changes. +
## License This project is licensed under the Apache-2.0 License - see the [LICENSE](LICENSE) file for details. - diff --git a/backend.py b/backend.py index 6a3c15a..23df00a 100644 --- a/backend.py +++ b/backend.py @@ -82,7 +82,7 @@ def fetch_information(self): data = attendance_res['data'].text total_lecture = extract_info(data, "Total Lecture : ([0-9]*)") - total_absent = extract_info(data, "Total Absent : ([0-9]*)") + total_absent = extract_info(data, "Total Absent \+ OAA: ([0-9]*)") attendance_percentage = extract_info(data, "Attendance Percentage : ([0-9.]*)\s%") # self.thread.progress.emit(['AttenTab',f'{total_lecture}\n{total_absent}\n{attendance_percentage}']) # TODO: Move this to frontend diff --git a/gui.py b/gui.py index e208d7d..ff2f79e 100644 --- a/gui.py +++ b/gui.py @@ -163,7 +163,7 @@ def show_info_dialog(self): dialog.setText( "
" "App Name: ErpSnap
" - "Version: 2.4
" + "Version: 2.4.1
" "Developer: Ashish Verma
" "
" )