[Update/Refactor] About VRCT: Poster Showcase. ワールド名追加や、ハイパーリンクの設定(Xの投稿)。

リンクがまだ(投稿がまだ)のものは、アイコンが暗く、クリックも出来ないように。
項目が増えたことにより、ページネーションの動きを新しく。
This commit is contained in:
Sakamoto Shiina
2024-04-25 17:29:22 +09:00
parent da83041fca
commit 44cba3f3ae
28 changed files with 181 additions and 90 deletions

View File

@@ -58,8 +58,10 @@ def renameWeightFolder(path):
if os_path.exists(weight_path):
os_rename(weight_path, os_path.join(path, "weights"))
def splitListRandomly(lst, split_count):
random.shuffle(lst)
def splitList(lst:list, split_count:int, to_shuffle:bool=False):
if to_shuffle is True:
random.shuffle(lst)
split_lists = []
for i in range(0, len(lst), split_count):
sub_list = lst[i:i+split_count]