Used to remove channels not in the starting set:
`removeChannelsNotInStartingSet.py`:
```py
#!/usr/bin/python3
import os
with open('newChannels.txt') as f:
lines = f.read().splitlines()
startingSet = set(lines)
os.chdir('channels/')
for element in os.listdir():
if not element.startswith('UC'):
continue
print(element)
channel = None
if element.endswith('.zip'):
channel = element.replace('.zip', '')
if not channel in startingSet:
os.remove(element)
print(f'{element} removed!')
```
While UCYne4N06sHVhRBXS0Lq5D8g is in the starting set, UCmz7q3pgPQIS2HOdJTv5eOg isn't. What a coincidence (ironic) that the problem raises when treated and to treat meet.
This problem may be linked to the fact that the to treat counter doesn't increase as expected.
As channels are written to channels.txt we don't need to restart from scratch the execution of the algorithm, we are just treating channels in an unknown order.
```
21-02-2023 13-21-59.513: 3: Treating channel UCYne4N06sHVhRBXS0Lq5D8g (treated: 56, to treat: 57)
21-02-2023 13-42-01.397: 7: Treating channel UCmz7q3pgPQIS2HOdJTv5eOg (treated: 57, to treat: 56)
```
While `UCYne4N06sHVhRBXS0Lq5D8g` is in the starting set, `UCmz7q3pgPQIS2HOdJTv5eOg` isn't. What a coincidence (*ironic*) that the problem raises when `treated` and `to treat` meet.
This problem may be linked to the fact that the `to treat` counter doesn't increase as expected.
As channels are written to `channels.txt` we don't need to restart from scratch the execution of the algorithm, we are just treating channels in an unknown order.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Used to remove channels not in the starting set:
removeChannelsNotInStartingSet.py:While
UCYne4N06sHVhRBXS0Lq5D8gis in the starting set,UCmz7q3pgPQIS2HOdJTv5eOgisn't. What a coincidence (ironic) that the problem raises whentreatedandto treatmeet.This problem may be linked to the fact that the
to treatcounter doesn't increase as expected.As channels are written to
channels.txtwe don't need to restart from scratch the execution of the algorithm, we are just treating channels in an unknown order.