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

feat: render schedule from svg #67

Merged
merged 2 commits into from
Nov 21, 2024
Merged

feat: render schedule from svg #67

merged 2 commits into from
Nov 21, 2024

Conversation

thisisfabrics
Copy link
Collaborator

Description of changes

The form_schedule function for PIL schedule images has been changed. The previous implementation was removed including attendant functions and replaced with a single svg string. Inside resourses, the template was placed.
The cairosvg library for svg converting to png was added.

Some function signatures were changed to enable or disable the fill of cells of a schedule image.

_render_keyboard was changed to correct alignment of buttons when all timeslots are visible.

The Roboto font has to be installed on the server!
image

@ArtemSBulgakov
Copy link
Member

Deployed to https://t.me/InnoMusicRoomStagingBot

@dantetemplar You can review it

@dantetemplar
Copy link
Member

Deployed to https://t.me/InnoMusicRoomStagingBot

@dantetemplar You can review it

It seems to be old images

image

@ArtemSBulgakov
Copy link
Member

Deployed to https://t.me/InnoMusicRoomStagingBot
@dantetemplar You can review it

It seems to be old images

You are too late. Deploy the API and bot again if you want to check it on staging.

Copy link
Member

@dantetemplar dantetemplar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@ArtemSBulgakov
Copy link
Member

Resolved conflicts with new pyproject.

@ArtemSBulgakov ArtemSBulgakov merged commit f78cc72 into main Nov 21, 2024
14 checks passed
@ArtemSBulgakov ArtemSBulgakov deleted the feat/svg-schedule branch November 21, 2024 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants