rootio / rootio_web

RootIO web app & telephony services
https://rootio.eu
GNU Affero General Public License v3.0
36 stars 19 forks source link

Link Stream and Podcast models to Network #335

Open nightsh opened 5 years ago

nightsh commented 5 years ago

Closes #168

To support these alterations, we need to link the existing content. I did this in my instance (as well as in the prod env when I did it with Tracks):

insert into content_podcastnetwork 
select t.id, u.network_id from content_podcast t 
    join radio_networkusers u on (t.created_by = u.user_id);

And for streams, the same:

insert into content_streamnetwork 
select t.id, u.network_id from content_stream t 
    join radio_networkusers u on (t.created_by = u.user_id);
pep8speaks commented 5 years ago

Hello @nightsh! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 13:1: E402 module level import not at top of file Line 14:1: E402 module level import not at top of file Line 18:5: E266 too many leading '#' for block comment Line 20:5: E128 continuation line under-indented for visual indent Line 21:5: E122 continuation line missing indentation or outdented Line 22:5: E122 continuation line missing indentation or outdented Line 23:5: E122 continuation line missing indentation or outdented Line 24:5: E122 continuation line missing indentation or outdented Line 27:5: E128 continuation line under-indented for visual indent Line 28:5: E122 continuation line missing indentation or outdented Line 29:5: E122 continuation line missing indentation or outdented Line 30:5: E122 continuation line missing indentation or outdented Line 31:5: E122 continuation line missing indentation or outdented Line 33:5: E266 too many leading '#' for block comment Line 37:5: E266 too many leading '#' for block comment Line 40:5: E266 too many leading '#' for block comment

Line 136:80: E501 line too long (111 > 79 characters) Line 242:80: E501 line too long (109 > 79 characters)

Line 480:80: E501 line too long (112 > 79 characters) Line 480:100: E251 unexpected spaces around keyword / parameter equals Line 480:102: E251 unexpected spaces around keyword / parameter equals Line 482:80: E501 line too long (122 > 79 characters) Line 484:80: E501 line too long (112 > 79 characters)