dont list categories in migrate target selection
This commit is contained in:
parent
27f8d98c69
commit
cbd01ddfe9
3 changed files with 6 additions and 3 deletions
|
|
@ -12,7 +12,7 @@ def setup_logging():
|
||||||
except Exception:
|
except Exception:
|
||||||
level = logging.INFO
|
level = logging.INFO
|
||||||
|
|
||||||
handlers = [logging.FileHandler('disco-reaper.log', mode='a')]
|
handlers = [logging.FileHandler('.reaper.log', mode='a')]
|
||||||
logging.basicConfig(
|
logging.basicConfig(
|
||||||
format='%(asctime)s,%(msecs)d %(name)s %(levelname)s %(message)s',
|
format='%(asctime)s,%(msecs)d %(name)s %(levelname)s %(message)s',
|
||||||
datefmt='%H:%M:%S',
|
datefmt='%H:%M:%S',
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ def setup_logging():
|
||||||
except Exception:
|
except Exception:
|
||||||
level = logging.INFO
|
level = logging.INFO
|
||||||
|
|
||||||
handlers = [logging.FileHandler('migration.log', mode='a')]
|
handlers = [logging.FileHandler('.shuttle.log', mode='a')]
|
||||||
if level == logging.DEBUG:
|
if level == logging.DEBUG:
|
||||||
handlers.append(logging.StreamHandler(sys.stdout))
|
handlers.append(logging.StreamHandler(sys.stdout))
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1108,7 +1108,10 @@ class MigrationCLI:
|
||||||
# 2. Select Target Channel
|
# 2. Select Target Channel
|
||||||
with console.status(f"[yellow]Fetching {platform_name} channels...[/yellow]"):
|
with console.status(f"[yellow]Fetching {platform_name} channels...[/yellow]"):
|
||||||
full_f_channels = await self.engine.writer.get_channels()
|
full_f_channels = await self.engine.writer.get_channels()
|
||||||
f_channels = [c for c in full_f_channels if c.get('name') not in ["reaper_logs", "reaper-logs"]]
|
f_channels = [
|
||||||
|
c for c in full_f_channels
|
||||||
|
if c.get('name') not in ["reaper_logs", "reaper-logs"] and c.get('type') != 4
|
||||||
|
]
|
||||||
if not f_channels:
|
if not f_channels:
|
||||||
console.print(f"[yellow]No channels found in {platform_name} community.[/yellow]")
|
console.print(f"[yellow]No channels found in {platform_name} community.[/yellow]")
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue