fix: add back DEFAULT_CASE_SCORE
This commit is contained in:
		
							parent
							
								
									68fedcfe95
								
							
						
					
					
						commit
						b4a9d0cb62
					
				|  | @ -5,6 +5,7 @@ from joj3_config_generator.models.common import Memory, Time | ||||||
| DEFAULT_CPU_LIMIT = Time("1s") | DEFAULT_CPU_LIMIT = Time("1s") | ||||||
| DEFAULT_MEMORY_LIMIT = Memory("256m") | DEFAULT_MEMORY_LIMIT = Memory("256m") | ||||||
| DEFAULT_FILE_LIMIT = Memory("32m") | DEFAULT_FILE_LIMIT = Memory("32m") | ||||||
|  | DEFAULT_CASE_SCORE = 5 | ||||||
| 
 | 
 | ||||||
| JOJ3_CONFIG_ROOT = Path("/home/tt/.config/joj") | JOJ3_CONFIG_ROOT = Path("/home/tt/.config/joj") | ||||||
| TEAPOT_CONFIG_ROOT = Path("/home/tt/.config/teapot") | TEAPOT_CONFIG_ROOT = Path("/home/tt/.config/teapot") | ||||||
|  |  | ||||||
|  | @ -7,6 +7,7 @@ from pydantic import BaseModel, ConfigDict, Field, field_validator, model_valida | ||||||
| 
 | 
 | ||||||
| from joj3_config_generator.models.common import Memory, Time | from joj3_config_generator.models.common import Memory, Time | ||||||
| from joj3_config_generator.models.const import ( | from joj3_config_generator.models.const import ( | ||||||
|  |     DEFAULT_CASE_SCORE, | ||||||
|     DEFAULT_CPU_LIMIT, |     DEFAULT_CPU_LIMIT, | ||||||
|     DEFAULT_FILE_LIMIT, |     DEFAULT_FILE_LIMIT, | ||||||
|     DEFAULT_MEMORY_LIMIT, |     DEFAULT_MEMORY_LIMIT, | ||||||
|  | @ -51,7 +52,7 @@ class Outputs(BaseModel): | ||||||
| 
 | 
 | ||||||
| class ParserDiff(BaseModel): | class ParserDiff(BaseModel): | ||||||
|     output: Outputs = Outputs() |     output: Outputs = Outputs() | ||||||
|     default_score: int = 5 |     default_score: int = DEFAULT_CASE_SCORE | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class Files(BaseModel): | class Files(BaseModel): | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user