-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 🚑 added ability to specify concurrent sessions on jellyfin (#378)
* fix(jellyfin): 🚑 non-default active user login session limit The policy being used to create a Jellyfin user was limited to 2 login session per commit 5b67ee8. The default setting when creating a user via the UI is 0 (unlimited). This resolves issue [#377](#377). * fix: 🚑 allow selectable max user sessions * fix: 🐝 dropdown formatting issues * fix: 🚑 ✨ Fixed custom user limit * feat: 🎊 ✨ Added ability to set user sessions limit on Jellyfin * revert: 🔙 🗑️ Removed old deprecated testing * fix: 🩹 ⚰️ Removed deprecated code which is causing errors * feat: 🚀 database migration script * docs: 📚 add code comments * fix: 🐝 migration script * fix: 🐝 🚑 Fixed labels not applying to select fields * fix: 🐝 🚑 Fixed incorrect value from field * fix: 🩹 add sessions column to base modal * chore: 🧼 📝 Increase dropdown to a max of 10 * fix(db-migration): 🐝 change sessions default to null * feat: 🎊 ✨ Added ability to view server specific options on invite * refactor: 🔧 🎨 Changed the invite view to be similar to creation --------- Co-authored-by: Jam <1347620+JamsRepos@users.noreply.github.com>
- Loading branch information
Showing
8 changed files
with
160 additions
and
33 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
apps/wizarr-backend/wizarr_backend/app/migrator/migrations/2024-04-19_18-46-37.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# | ||
# CREATED ON VERSION: V4.0.0b7 | ||
# MIGRATION: 2024-04-19_18-46-37 | ||
# CREATED: Fri Apr 19 2024 | ||
# | ||
|
||
from peewee import * | ||
from playhouse.migrate import * | ||
|
||
from app import db | ||
|
||
# Do not change the name of this file, | ||
# migrations are run in order of their filenames date and time | ||
|
||
|
||
def run(): | ||
# Use migrator to perform actions on the database | ||
migrator = SqliteMigrator(db) | ||
|
||
# Add new Column to users table called tutorial, its a boolean field with a default value of False | ||
with db.transaction(): | ||
# Check if the column exists | ||
cursor = db.cursor() | ||
cursor.execute("PRAGMA table_info(invitations);") | ||
columns = cursor.fetchall() | ||
column_names = [column[1] for column in columns] | ||
|
||
if "sessions" not in column_names: | ||
db.execute_sql("ALTER TABLE invitations ADD COLUMN sessions INTEGER") | ||
else: | ||
print("Column sessions already exists") | ||
|
||
print("Migration 2024-04-19_18-46-37 complete") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters