Skip to content

Commit

Permalink
Merge pull request #20 from zaanposni/release/1.2.2
Browse files Browse the repository at this point in the history
release/1.2.2
  • Loading branch information
zaanposni authored Jan 22, 2024
2 parents 612ee48 + ff0bc8f commit 9f85b34
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 6 deletions.
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

0 comments on commit 9f85b34

Please sign in to comment.