Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/jumpserver/jumpserver into p…
Browse files Browse the repository at this point in the history
…r@dev@feat_audit_view_download_replay
  • Loading branch information
O-Jiangweidong committed Aug 29, 2023
2 parents d4469ae + 904406c commit bc217e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/assets/migrations/0121_auto_20230725_1458.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ def migrate_assets_sftp_protocol(apps, schema_editor):

count = 0
print("\nAsset add sftp protocol: ")
asset_ids = asset_cls.objects\
asset_ids = list(asset_cls.objects\
.filter(platform__in=sftp_platforms)\
.exclude(protocols__name='sftp')\
.distinct()\
.values_list('id', flat=True)
.values_list('id', flat=True))
while True:
_asset_ids = asset_ids[count:count + 1000]
if not _asset_ids:
Expand Down

0 comments on commit bc217e1

Please sign in to comment.