Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release/1.2.2 #20

Merged
merged 4 commits into from
Jan 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/dataimport/informationopenaianalyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ async def openai():
continue

start_date = parse(stream["start"])
start_date = start_date.replace(tzinfo=timezone.utc)
start_date = start_date.astimezone(timezone.utc)
if start_date.year < datetime.now().year:
start_date = start_date.replace(year=datetime.now().year)

Expand Down
12 changes: 12 additions & 0 deletions src/dataimport/pietsmietdeuploadplan.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,18 @@ async def stuff() -> asyncio.coroutine:
await db.execute(query)
console.log(f"Updated entry for {content.title} on {content.time}.")
elif content.type == "TwitchStream" or not existing_imports_for_today:
if content.type == "TwitchStream":
query = "SELECT * FROM ScheduledContentPiece WHERE startDate = '{}' AND type = 'TwitchStream'".format(
content.time.strftime("%Y-%m-%d %H:%M:%S")
)
result = await db.fetch_all(query)
if len(result) > 0:
console.log(
f"Found existing entry for stream {content.title} on {content.time}. Skipping...",
style="bold yellow",
)
continue

console.log(
f"Adding {content.title} on {content.time} to database...",
style="bold yellow",
Expand Down
4 changes: 2 additions & 2 deletions src/psaggregator/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/psaggregator/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "psaggregator",
"version": "1.2.1",
"version": "1.2.2",
"scripts": {
"dev": "vite dev",
"build": "vite build",
Expand Down
4 changes: 2 additions & 2 deletions src/psaggregator/src/lib/components/UploadPlanEntry.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<span class="overflow-x-hidden text-ellipsis whitespace-nowrap" title={entry.title}>{entry.title}</span>
{#if entry.importedFrom === "OpenAI"}
<div class="grow" />
<div class="shrink-0" title="Diese Ressource wurde von der OpenAI Vision AI erstellt">
<div class="shrink-0" title="Diese Ressource wurde von der OpenAI Vision AI importiert">
<Sparkle />
</div>
{/if}
Expand All @@ -54,7 +54,7 @@
<span class="overflow-x-hidden text-ellipsis whitespace-nowrap" title={entry.title}>{entry.title}</span>
{#if entry.importedFrom === "OpenAI"}
<div class="grow" />
<div class="shrink-0" title="Diese Ressource wurde von der OpenAI Vision AI erstellt">
<div class="shrink-0" title="Diese Ressource wurde von der OpenAI Vision AI importiert">
<Sparkle />
</div>
{/if}
Expand Down
Loading