Closed Latemus closed 3 weeks ago
Could split PR of this size to smaller PRs.
Apple silicon mac gets stuck when running
python bobweb/web/manage.py test bobweb/bob
On one of the ilmoitustaulu tests.
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
87.6% Coverage on New Code
0.0% Duplication on New Code
Ilmoitustaulu-testi korjattu. Jätän ton TikToken kirjaston siivoamisen seuraavaan merge-requestiin ja jätän nyt splittaamatta tätä. Seuraava on sit malillisempi.
Added new Message Board -functionality
/ilmoitustaulu [off]
which creates new message board or repins currently used message board message/ruoka
) now randomizes random recipe from the list and fetches html content of that recipes page. Then parses the html to virtual DOM from which enriched recipe information is added to the message. New info contains: description, difficulty, prep time and serving count. This is first implementation where information is scraped from a website and can be used as an example for further implementations.handle_exception_async
introduced in the original Twitch integration implementation. Previously it worked only as function decorator to async functions. Now it works both as a function decorator and as a context manager. In addition, works for both async and sync contexts with the same call. Neat! However, the implementation is now more complex due to this update.VideoConvertService
. This is only minor improvement. In the previous implementation, whenever the event loop required new twitch stream frame it started a new ffmpeg subroutine and was left wating for the subprocess finishing. This could cause a problem, where multiple converts were started in the same time (multiple different streams updating at the same time). Now each convert is done sequentially from a queue with a first-in-first-out principle. Now multiple streams should not cause problems with the stream frame extracting.