Whoops removed some crucial functionality... :')

This commit is contained in:
Donné Napo 2024-04-24 12:52:33 +02:00
parent 5e1be11ec2
commit 8be76f224f
2 changed files with 7 additions and 1 deletions

View File

@ -23,7 +23,7 @@ public partial class EntityLinker
public string ClassName => _className;
public string Path => _path;
public string FieldName => _className.ToLower().Underscore();
public string FieldName => _className.Underscore().ToLower();
public string TableName => GetOriginalText(_tableCtx)
.Replace("__tablename__", string.Empty)

View File

@ -40,6 +40,12 @@ public sealed class Api : IFeature
return;
}
await Bash.ExecuteAsync(
"source .venv/bin/activate",
"python3 -m pip install fastapi uvicorn[standard]",
"python3 -m pip freeze > requirements.txt"
);
await context.CreateFile("api/routers/hello.py", HelloRouter);
var main = await context.ReadFile("main.py");