mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-20 11:45:57 +08:00
Merge branch 'dev_trustie' into dev_chain
This commit is contained in:
@@ -5,7 +5,7 @@ module RepositoriesHelper
|
||||
end
|
||||
|
||||
def download_type(str)
|
||||
default_type = %w(xlsx xls ppt pptx pdf zip 7z rar exe pdb obj idb png jpg gif tif psd svg)
|
||||
default_type = %w(xlsx xls ppt pptx pdf zip 7z rar exe pdb obj idb png jpg gif tif psd svg RData rdata)
|
||||
default_type.include?(str&.downcase)
|
||||
end
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ class Mirror < ApplicationRecord
|
||||
# 0: 同步镜像成功;1: 正在同步镜像;2: 同步失败,默认值为0
|
||||
enum status: { succeeded: 0, waiting: 1, failed: 2 }
|
||||
|
||||
belongs_to :repository
|
||||
belongs_to :repository, foreign_key: :repo_id
|
||||
|
||||
|
||||
def set_status!(status=Mirror.statuses[:succeeded])
|
||||
|
||||
Reference in New Issue
Block a user