Skip to content
This repository has been archived by the owner on Nov 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #18 from eccentricOrange/faster
Browse files Browse the repository at this point in the history
Faster
  • Loading branch information
eccentricOrange authored Apr 24, 2022
2 parents 0013a4a + 75cb23f commit a262ee5
Show file tree
Hide file tree
Showing 10 changed files with 1,049 additions and 595 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,19 @@ jobs:
python-version: '3.10'
- run: pip install -r requirements.txt
- uses: cclauss/GitHub-Action-for-pytest@0.5.0
- run: pytest

build:
build:
needs:
- pytest
- test
strategy:
matrix:
os:
- ubuntu
- windows
- macos
architecture: ['x64']
app: ['cli', 'api', updater]
app: ['cli', updater]
include:
- os: windows
data-file: data/schema.sql;.
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ exp
*legacy*
npbc.db
pyenv-install
bin
bin
.vscode
9 changes: 0 additions & 9 deletions .vscode/settings.json

This file was deleted.

9 changes: 4 additions & 5 deletions data/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ CREATE TABLE IF NOT EXISTS papers_days_delivered (
paper_id INTEGER NOT NULL,
day_id INTEGER NOT NULL,
delivered INTEGER NOT NULL,
FOREIGN KEY(paper_id) REFERENCES papers(paper_id),
CONSTRAINT unique_paper_day UNIQUE (paper_id, day_id)
);
CREATE TABLE IF NOT EXISTS papers_days_cost(
paper_id INTEGER NOT NULL,
day_id INTEGER NOT NULL,
cost INTEGER,
cost INTEGER,
FOREIGN KEY(paper_id) REFERENCES papers(paper_id),
CONSTRAINT unique_paper_day UNIQUE (paper_id, day_id)
);
Expand All @@ -33,7 +34,5 @@ CREATE TABLE IF NOT EXISTS undelivered_dates (
dates TEXT NOT NULL,
FOREIGN KEY (paper_id) REFERENCES papers(paper_id)
);
CREATE INDEX IF NOT EXISTS search_strings
ON undelivered_strings(year, month);
CREATE INDEX IF NOT EXISTS paper_names
ON papers(name);
CREATE INDEX IF NOT EXISTS search_strings ON undelivered_strings(year, month);
CREATE INDEX IF NOT EXISTS paper_names ON papers(name);
132 changes: 0 additions & 132 deletions npbc_api.py

This file was deleted.

Loading

0 comments on commit a262ee5

Please sign in to comment.