Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
10537855f6 | ||
|
|
3a5f477914 | ||
|
|
de9852e374 | ||
|
|
5440da0bdf | ||
|
|
40d9999a80 | ||
|
|
5887771a38 | ||
|
|
55e04f0a7c | ||
|
|
1df6c42b41 | ||
|
|
1ba6f903d9 | ||
|
|
8faf56f9ad | ||
|
|
d1059905c6 | ||
|
|
6e488ca352 | ||
|
|
dd356b0d13 | ||
|
|
1a77623e4d | ||
|
|
8d7564185f | ||
|
|
e1da46d61b | ||
|
|
86d6e5a61d | ||
|
|
5d580d68f6 | ||
|
|
2308d183e9 | ||
|
|
67891e5222 | ||
|
|
04cfd42b4b | ||
|
|
d612003f32 | ||
|
|
8ded841d44 | ||
|
|
76fa9a8db1 | ||
|
|
005bf87df5 | ||
|
|
aa8883c822 | ||
|
|
53994f99dc | ||
|
|
0f8b9b444b | ||
|
|
90ca36f426 | ||
|
|
5691cebc11 | ||
|
|
f1c9655748 | ||
|
|
4fe20615d3 | ||
|
|
d32c17a5da | ||
|
|
729746b0bd | ||
|
|
152bfb316b | ||
|
|
369ccdbfc0 | ||
|
|
a419dd498f | ||
|
|
b4b0ccdac6 | ||
|
|
32664c3a10 | ||
|
|
41ce94c85c | ||
|
|
397eddf299 | ||
|
|
8affb90308 |
No files matched your search
@@ -35,3 +35,4 @@ assets/external/
|
||||
__pycache__/
|
||||
win/
|
||||
.github/
|
||||
activate/
|
||||
-21
@@ -1,21 +0,0 @@
|
||||
FROM python:3.13-alpine
|
||||
|
||||
# Install uv
|
||||
RUN pip install uv
|
||||
|
||||
# Set working directory
|
||||
WORKDIR /app
|
||||
|
||||
# Copy project files
|
||||
COPY pyproject.toml ./
|
||||
COPY README.md ./
|
||||
|
||||
# Install dependencies using uv without venv
|
||||
RUN uv pip compile pyproject.toml -o requirements.txt && \
|
||||
uv pip install --system -r requirements.txt
|
||||
|
||||
# Copy the rest of the application
|
||||
COPY . .
|
||||
|
||||
# Default command
|
||||
CMD ["python", "tests/test.py"]
|
||||
+1
-1
@@ -48,7 +48,7 @@ def get_set(set_number: int) -> dict:
|
||||
}
|
||||
# add PW 10% b4 tax
|
||||
our_set.update(
|
||||
{"set_adjustredprice": our_set["set_retailprice"] + ((10 / 100) * our_set["set_retailprice"])}
|
||||
{"set_adjustredprice": our_set + ((10 / 100) * our_set["set_retailprice"])}
|
||||
)
|
||||
our_set["pw_name"] = (
|
||||
f"{our_set['set_num']} - {our_set["set_theme"].upper()} {our_set['set_name']}"
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
import json
|
||||
|
||||
from . import get_sq_env
|
||||
import get_sq_env
|
||||
|
||||
SQUARE_TOKEN = get_sq_env.SQUARE_TOKEN
|
||||
LEGO_CAT_ID = get_sq_env.LEGO_CAT_ID
|
||||
|
||||
+1
-26
@@ -1,31 +1,6 @@
|
||||
import sys
|
||||
from pathlib import Path
|
||||
from pprint import pprint
|
||||
sys.path.insert(0, str(Path(__file__).parent.parent))
|
||||
|
||||
import socket
|
||||
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
|
||||
import src.libsquare as sq
|
||||
import src.bricksetapi as lego
|
||||
|
||||
print("=" * 80)
|
||||
result = sock.connect_ex(('127.0.0.1', 7432))
|
||||
if result == 0:
|
||||
print("PORT 7432 IS IN USE")
|
||||
else:
|
||||
print("PORT 7432 IS AVAILABLE")
|
||||
sock.close()
|
||||
|
||||
print("=" * 80)
|
||||
print("SQUARE OBJECT FOR SET 71417:")
|
||||
print("=" * 80)
|
||||
oursq = sq.get_itm("71417")
|
||||
pprint(oursq, width=120, depth=None)
|
||||
|
||||
print("\n" + "=" * 80)
|
||||
print("LEGO SET INFORMATION FOR SET 71417:")
|
||||
print("=" * 80)
|
||||
ourlego = lego.get_set(71417)
|
||||
print("=" * 80)
|
||||
pprint(ourlego, width=120, depth=None)
|
||||
print(f"{oursq}\n\n{ourlego}\n\n")
|
||||
Reference in new issue
Block a user