No, it was not legal. It was not a switchblade, but it was spring-assisted, which Baltimore’s law bans.
That is a 'switchblade' defined by Baltimore; and if true would be 'illegal' there.
Anything with a automatic or spring assist is deemed a 'switchblade'.