diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e183525..073ee32 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -64,7 +64,8 @@ jobs: mv /tmp/report-engine-build.deb /tmp/report-engine-${{ github.run_number }}-x64.deb rm -rf $DEBIAN_PATH - +# sed -i s/%VERSION%/${{ github.run_number }}/g scripts/redhat/report-engine.spec +# rpmbuild -ba scripts/redhat/report-engine.spec --define "_app_dir $TMP_DIR" --define "_rpmdir /tmp" --define "_rpmfilename report-engine-${{ github.run_number }}-x64.rpm" - name: Release id: create_release uses: softprops/action-gh-release@v1 diff --git a/main.py b/main.py index b715391..88a59a4 100644 --- a/main.py +++ b/main.py @@ -37,7 +37,7 @@ def ListTemplates(name: str): return res -@app.delete("/templates/{name}",summary="Lists all templates.", tags=["Template"]) +@app.delete("/templates/{name}",summary="Deletes a template.", tags=["Template"]) def ListTemplates(name: str): os.remove(os.getcwd() + "/templates/" + name) return "Item deleted successfully." diff --git a/requirements.txt b/requirements.txt index 892e2da..a3ca231 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,3 +2,4 @@ docxtpl==0.16.7 fastapi==0.104.0 pydantic==2.4.2 uvicorn==0.15.0 +python-multipart \ No newline at end of file